Hello, i'm having an issue with my trigger, which is that the chance of a dummy spawning, is (Now in this trigger) based on the hero getting ATTACKED, not the hero itself attacking (Which it's supposed to be). And also the damage dealt is supposed to be based on the base damage of the hero. What am i missing/doing wrong?
Thanks in advance!
Thanks in advance!
-
Cast
-
Events
-
Unit - A unit Is attacked
-
-
Conditions
-
(Level of Copycat for (Triggering unit)) Not equal to 0
-
-
Actions
-
Set VariableSet Copycat_Target = (Attacked unit)
-
Set VariableSet Copycat_Caster = (Triggering unit)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Random real number between 0.00 and 1.00) Less than or equal to Copycat_Chance[(Level of Copycat for (Triggering unit))]
-
-
Then - Actions
-
Unit - Create 1 Glaivemaster Dummy for (Owner of Copycat_Caster) at ((Position of Copycat_Caster) offset by ((Random real number between 50.00 and 400.00), (Random real number between 50.00 and 400.00))) facing (Facing of Copycat_Target) degrees
-
Unit - Cause Copycat_Dummy to damage Copycat_Target, dealing (Real((Base Damage of Copycat_Caster for weapon index 0))) damage of attack type Spells and damage type Normal
-
Unit - Order Copycat_Dummy to Attack Once Copycat_Target
-
Set VariableSet Copycat_Dummy = (Last created unit)
-
Unit - Add a 1.50 second Generic expiration timer to Copycat_Dummy
-
-
Else - Actions
-
-
-