Tholdalf
New Member
- Reaction score
- 2
What i want this spell to do is to raise all nerby friendly heroes Str, Agi and Int for a set time. The raising part is working but for some reason they wount reset after those 20s.
heres the code
heres the code
Code:
Prayer of Might
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Prayer of Might
Actions
Set Prayer_of_Might_levelcheck = (Level of Prayer of Might for (Triggering unit))
Hero - Modify Strength of (Triggering unit): Add (2 x (Level of Prayer of Might for (Triggering unit)))
Hero - Modify Agility of (Triggering unit): Add (2 x (Level of Prayer of Might for (Triggering unit)))
Hero - Modify Intelligence of (Triggering unit): Add (2 x (Level of Prayer of Might for (Triggering unit)))
Unit Group - Pick every unit in (Units within 1200.00 of (Position of (Triggering unit))) and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Picked unit) is A Hero) Equal to True
((Picked unit) belongs to an ally of (Owner of (Triggering unit))) Equal to True
Then - Actions
Set Prayer_of_Might_Unit[(Player number of (Owner of (Picked unit)))] = (Picked unit)
Hero - Modify Strength of Prayer_of_Might_Unit[(Player number of (Owner of (Picked unit)))]: Add (2 x (Level of Prayer of Might for (Triggering unit)))
Hero - Modify Agility of Prayer_of_Might_Unit[(Player number of (Owner of (Picked unit)))]: Add (2 x (Level of Prayer of Might for (Triggering unit)))
Hero - Modify Intelligence of Prayer_of_Might_Unit[(Player number of (Owner of (Picked unit)))]: Add (2 x (Level of Prayer of Might for (Triggering unit)))
Wait 20.00 seconds
Hero - Modify Strength of Prayer_of_Might_Unit[(Player number of (Owner of (Picked unit)))]: Subtract (2 x (Level of Prayer of Might for (Triggering unit)))
Hero - Modify Agility of Prayer_of_Might_Unit[(Player number of (Owner of (Picked unit)))]: Subtract (2 x (Level of Prayer of Might for (Triggering unit)))
Hero - Modify Intelligence of Prayer_of_Might_Unit[(Player number of (Owner of (Picked unit)))]: Subtract (2 x (Level of Prayer of Might for (Triggering unit)))
Hero - Modify Strength of (Triggering unit): Subtract (2 x (Level of Prayer of Might for (Triggering unit)))
Hero - Modify Agility of (Triggering unit): Subtract (2 x (Level of Prayer of Might for (Triggering unit)))
Hero - Modify Intelligence of (Triggering unit): Subtract (2 x (Level of Prayer of Might for (Triggering unit)))
Else - Actions
Do nothing