RoarMan
Member
- Reaction score
- 12
This spell is not working as intended. What it does is when the caster of the spell takes damage, the unit he casted the spell on takes a percentage of the damage. When I use the skill however, the enemy does not take any damage the caster takes.
Code:
Deaths Grip Setup
Events
Unit - A unit Begins casting an ability
Conditions
(Ability being cast) Equal to Shadow Bind
Actions
Trigger - Add to Deaths Grip <gen> the event (Unit - (Triggering unit) Takes damage)
Code:
Deaths Grip
Events
Conditions
Actions
Unit Group - Pick every unit in (Units in (Playable map area)) and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Damage source) has buff Shadow Bind ) Equal to True
Then - Actions
Unit - Cause (Triggering unit) to damage (Picked unit), dealing ((Damage taken) x (0.25 x (Real((Level of Shadow Bind for (Triggering unit)))))) damage of attack type Spells and damage type Normal
Else - Actions