sentrywiz
S
sentrywiz
I have a conundrum that evades me so far.
I put a damage detection system in my map. i did so to prevent the "unit is attacked" event triggering abuse where you can spam stop and the triggered effects from items and spells will still go off.
Now here is my problem. i have an item that allows single target spells to deal either 5% or 10% of enemy's max hp as spell damage on cast. this had no problem before, but ever since i added the dds, it now has a chance to insta kill someone with a spell, and this only occurs with a triggered curse spell that also deals triggered spell damage on cast according to its level.
all the other single target spells don't do this. i guess its because the damage from them is native and not triggered.
but i need more eyes on this, so if you see something give me a reply.
thanks!
p.s - none of the bots in my map have the magic boost ability so it somehow glitches with that and % of max hp yet they still trigger an insta kill without it. it may be part of the problem, just saying that none of my bot testers have this ability and thus their magic boost is always 0.00
I put a damage detection system in my map. i did so to prevent the "unit is attacked" event triggering abuse where you can spam stop and the triggered effects from items and spells will still go off.
Now here is my problem. i have an item that allows single target spells to deal either 5% or 10% of enemy's max hp as spell damage on cast. this had no problem before, but ever since i added the dds, it now has a chance to insta kill someone with a spell, and this only occurs with a triggered curse spell that also deals triggered spell damage on cast according to its level.
all the other single target spells don't do this. i guess its because the damage from them is native and not triggered.
but i need more eyes on this, so if you see something give me a reply.
thanks!
p.s - none of the bots in my map have the magic boost ability so it somehow glitches with that and % of max hp yet they still trigger an insta kill without it. it may be part of the problem, just saying that none of my bot testers have this ability and thus their magic boost is always 0.00
-
SHOW DAMAGE
-
Events
-
Game - PDD_damageEventTrigger becomes Equal to 1.00
-
-
Conditions
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
PDD_damageType Equal to PDD_PHYSICAL
-
Or - Any (Conditions) are true
-
Conditions
-
(PDD_source is A Hero) Equal to True
-
(Unit-type of PDD_source) Equal to Dummy
-
-
-
-
Then - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Player_Crit_Damage[(Player number of (Owner of PDD_source))] Greater than 1.00
-
(Random integer number between 1 and 100) Less than or equal to 15
-
-
Then - Actions
-
Set PDD_amount = (PDD_amount x Player_Crit_Damage[(Player number of (Owner of PDD_source))])
-
Floating Text - Create floating text that reads ((String((Integer(PDD_amount)))) + !) above PDD_target with Z offset 0.00, using font size 11.00, color (100.00%, 10.00%, 0.00%), and 0.00% transparency
-
Floating Text - Set the velocity of (Last created floating text) to 75.00 towards 90.00 degrees
-
Floating Text - Change (Last created floating text): Disable permanence
-
Floating Text - Change the lifespan of (Last created floating text) to 1.50 seconds
-
-
Else - Actions
-
Floating Text - Create floating text that reads (String((Integer(PDD_amount)))) above PDD_target with Z offset 0.00, using font size 9.00, color (100.00%, 100.00%, 100.00%), and 0.00% transparency
-
Floating Text - Set the velocity of (Last created floating text) to 75.00 towards 90.00 degrees
-
Floating Text - Change (Last created floating text): Disable permanence
-
Floating Text - Change the lifespan of (Last created floating text) to 1.50 seconds
-
-
-
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
PDD_damageType Equal to PDD_SPELL
-
Or - Any (Conditions) are true
-
Conditions
-
(PDD_source is A Hero) Equal to True
-
(Unit-type of PDD_source) Equal to Dummy
-
-
-
-
Then - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Player_Magic_Boost[(Player number of (Owner of PDD_source))] Greater than 0.00
-
(Random real number between 1.00 and 100.00) Less than or equal to 25.00
-
-
Then - Actions
-
Set PDD_amount = (PDD_amount + (PDD_amount x Player_Magic_Boost[(Player number of (Owner of PDD_source))]))
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Player_Magic_Res[(Player number of (Owner of PDD_target))] Greater than 0.00
-
-
Then - Actions
-
Set PDD_amount = (PDD_amount - (PDD_amount x Player_Magic_Res[(Player number of (Owner of PDD_target))]))
-
-
Else - Actions
-
-
Floating Text - Create floating text that reads ((String((Integer(PDD_amount)))) + !) above PDD_target with Z offset 0.00, using font size 11.00, color (99.00%, 25.00%, 52.00%), and 0.00% transparency
-
Floating Text - Set the velocity of (Last created floating text) to 75.00 towards 150.00 degrees
-
Floating Text - Change (Last created floating text): Disable permanence
-
Floating Text - Change the lifespan of (Last created floating text) to 1.50 seconds
-
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Player_Magic_Res[(Player number of (Owner of PDD_target))] Greater than 0.00
-
-
Then - Actions
-
Set PDD_amount = (PDD_amount - (PDD_amount x Player_Magic_Res[(Player number of (Owner of PDD_target))]))
-
-
Else - Actions
-
-
Floating Text - Create floating text that reads (String((Integer(PDD_amount)))) above PDD_target with Z offset 0.00, using font size 9.00, color (82.00%, 47.00%, 78.00%), and 0.00% transparency
-
Floating Text - Set the velocity of (Last created floating text) to 75.00 towards 150.00 degrees
-
Floating Text - Change (Last created floating text): Disable permanence
-
Floating Text - Change the lifespan of (Last created floating text) to 1.50 seconds
-
-
-
-
Else - Actions
-
-
-
-
-
-
Cigarce Spell
-
Events
-
Unit - A unit Starts the effect of an ability
-
-
Conditions
-
Or - Any (Conditions) are true
-
Conditions
-
(Ability being cast) Equal to Cigarce [E]
-
(Ability being cast) Equal to Cigarce [Q]
-
(Ability being cast) Equal to Cigarce [W]
-
-
-
-
Actions
-
Set temp_loc = (Position of (Target unit of ability being cast))
-
Unit - Create 1 Dummy Smoke for (Owner of (Triggering unit)) at temp_loc facing Default building facing degrees
-
Set temp_unit = (Last created unit)
-
Unit - Add a 1.00 second Generic expiration timer to temp_unit
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Ability being cast) Equal to Cigarce [Q]
-
-
Then - Actions
-
Set temp_real = (Real(((Level of Cigarce [Q] for (Triggering unit)) x 30)))
-
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Ability being cast) Equal to Cigarce [W]
-
-
Then - Actions
-
Set temp_real = (Real(((Level of Cigarce [W] for (Triggering unit)) x 30)))
-
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Ability being cast) Equal to Cigarce [E]
-
-
Then - Actions
-
Set temp_real = (Real(((Level of Cigarce [E] for (Triggering unit)) x 30)))
-
-
Else - Actions
-
-
-
-
-
-
Unit - Cause (Triggering unit) to damage (Target unit of ability being cast), dealing temp_real damage of attack type Spells and damage type Normal
-
Custom script: call RemoveLocation ( udg_temp_loc )
-
-
-
Upaljach Ognena Pat
-
Events
-
Unit - A unit Starts the effect of an ability
-
-
Conditions
-
Or - Any (Conditions) are true
-
Conditions
-
((Triggering unit) has an item of type Upaljach) Equal to True
-
((Triggering unit) has an item of type Ognena Patika) Equal to True
-
-
-
Or - Any (Conditions) are true
-
Conditions
-
(Ability being cast) Equal to Flasha [E]
-
(Ability being cast) Equal to Flasha [Q]
-
(Ability being cast) Equal to Flasha [W]
-
(Ability being cast) Equal to Molotov Koktel [E]
-
(Ability being cast) Equal to Molotov Koktel [Q]
-
(Ability being cast) Equal to Molotov Koktel [W]
-
(Ability being cast) Equal to Pcovka [E]
-
(Ability being cast) Equal to Pcovka [Q]
-
(Ability being cast) Equal to Pcovka [W]
-
(Ability being cast) Equal to Cigarce [Q]
-
(Ability being cast) Equal to Cigarce [E]
-
(Ability being cast) Equal to Cigarce [W]
-
(Ability being cast) Equal to Grch Voda [E]
-
(Ability being cast) Equal to Grch Voda [Q]
-
(Ability being cast) Equal to Grch Voda [W]
-
(Ability being cast) Equal to Pijandura [R]
-
(Ability being cast) Equal to Sadist [R]
-
(Ability being cast) Equal to Krsh [R]
-
(Ability being cast) Equal to Shpongle [R]
-
-
-
-
Actions
-
Set Upaljach_Unit = (Target unit of ability being cast)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
((Triggering unit) has an item of type Ognena Patika) Equal to True
-
-
Then - Actions
-
Set Upaljach_Damage = ((Max life of Upaljach_Unit) x 0.10)
-
Set Upaljach_DamageInt = (Integer(Upaljach_Damage))
-
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
((Triggering unit) has an item of type Upaljach) Equal to True
-
-
Then - Actions
-
Set Upaljach_Damage = ((Max life of Upaljach_Unit) x 0.05)
-
Set Upaljach_DamageInt = (Integer(Upaljach_Damage))
-
-
Else - Actions
-
-
-
-
Unit - Cause (Triggering unit) to damage Upaljach_Unit, dealing Upaljach_Damage damage of attack type Spells and damage type Normal
-
Special Effect - Create a special effect attached to the origin of Upaljach_Unit using Abilities\Spells\Other\Doom\DoomDeath.mdl
-
Special Effect - Destroy (Last created special effect)
-
-