inevit4ble
Well-Known Member
- Reaction score
- 38
Hi Every1,
The base spell is holy light with "self" added as "targets allows". Its supposed to heal if the target is non-Undead (enemy or ally) but it doesn't do either of the Life adjusting lines. It does increment the casts and stops casting when the limit is reached. Just doesn't do the effect.
Thx in advance
PS: The Event is set to Begins Casting instead of Starts effect so it stops the spell before the graphic effects occur when the limit is reached
The base spell is holy light with "self" added as "targets allows". Its supposed to heal if the target is non-Undead (enemy or ally) but it doesn't do either of the Life adjusting lines. It does increment the casts and stops casting when the limit is reached. Just doesn't do the effect.
Trigger:
- Lay On Hands
- Events
- Unit - A unit Begins casting an ability
- Conditions
- (Ability being cast) Equal to Lay On Hands
- Actions
- Set MyPlayerGroup = (Player group((Owner of (Triggering unit))))
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- LayOnHandsCasts Less than PalaMaxLayOnHands
- Then - Actions
- Set LayOnTotal = ((Real((Level of (Triggering unit)))) x (Real(ModWis[((Player number of (Owner of (Triggering unit))) - 1)])))
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Race of (Targeted unit)) Not equal to Undead
- Then - Actions
- Unit - Set life of (Targeted unit) to ((Life of (Targeted unit)) + LayOnTotal)
- Else - Actions
- Unit - Set life of (Targeted unit) to ((Life of (Targeted unit)) - LayOnTotal)
- If - Conditions
- Set LayOnTotal = 0.00
- Set LayOnHandsCasts = (LayOnHandsCasts + 1)
- Else - Actions
- Unit - Order (Triggering unit) to Stop
- Game - Display to MyPlayerGroup the text: You have reached yo...
- If - Conditions
- Custom script: call DestroyForce(udg_MyPlayerGroup)
- Events
Thx in advance
PS: The Event is set to Begins Casting instead of Starts effect so it stops the spell before the graphic effects occur when the limit is reached