'lo folks. Could do with alil' help trying to get this spell to work. Think of it as Thorns Aura - but not. :| Yes, the units I've tested it on deal more than 10 damage.
[edit] specifying what part of the trigger isn't working; it doesn't set the value for 'Spell_InfernalShield'. When testing the floating text reads "0 dmg returned (Mallaboro)"
[edit] specifying what part of the trigger isn't working; it doesn't set the value for 'Spell_InfernalShield'. When testing the floating text reads "0 dmg returned (Mallaboro)"
-
Infernal Shield Charge
-
Events
- Unit - A unit Is attacked
-
Conditions
-
Or - Any (Conditions) are true
-
Conditions
- (Attacked unit) Equal to Heroes[0]
- (Attacked unit) Equal to Heroes[1]
- (Attacked unit) Equal to Heroes[2]
-
Conditions
-
Or - Any (Conditions) are true
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- ((Attacked unit) has buff Infernal Shield ) Equal to True
-
Then - Actions
- Set DegreesRandom[0] = (Random real number between 0.00 and 359.00)
- Set Spell_InfernalShield[(Player number of (Owner of (Attacked unit)))] = ((Integer((Damage taken))) / 10)
- Unit - Cause (Attacked unit) to damage (Attacking unit), dealing (Real(Spell_InfernalShield[(Player number of (Owner of (Attacked unit)))])) damage of attack type Normal and damage type Divine
- Floating Text - Create floating text that reads ((String(Spell_InfernalShield[(Player number of (Owner of (Attacking unit)))])) + ( dmg returned + (( + ((Name of (Owner of (Attacked unit))) + ))))) above (Attacked unit) with Z offset 0.00, using font size 9.00, color (99.00%, 0.00%, 0.00%), and 60.00% transparency
- Floating Text - Set the velocity of (Last created floating text) to 60.00 towards DegreesRandom[0] degrees
- Floating Text - Change (Last created floating text): Disable permanence
- Floating Text - Change the fading age of (Last created floating text) to 1.00 seconds
- Floating Text - Change the lifespan of (Last created floating text) to 1.50 seconds
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Events