Hey guys, im having a problem with this trig. i used this other post as a reference: http://www.thehelper.net/forums/showpost.php?p=1055805&postcount=3
What happens in game is: The shielded target does absorb the damage, but after the buff fades, and another shield is cast, it doubles the previous absorbed amount, meaning the unit starts to gain health instead of absorb it... almost like the triggers are doubling over?
Priest Shield On
Events
Unit - A unit Begins casting an ability
Conditions
(Ability being cast) Equal to Shield
Actions
Set Dummy_Unit = (Target unit of ability being cast)
Trigger - Add to Priest Shield <gen> the event (Unit - Dummy_Unit Takes damage)
------------
Priest Shield
Events
Conditions
((Triggering unit) has buff Shielded) Equal to True
Actions
Game - Display to Player Group - Player 1 (Red) the text: (String((Damage taken)))
Unit - Set life of (Triggering unit) to ((Life of (Triggering unit)) + (Damage taken))
Trigger - Remove (This trigger) from the trigger queue
thanks for the help everyone.
What happens in game is: The shielded target does absorb the damage, but after the buff fades, and another shield is cast, it doubles the previous absorbed amount, meaning the unit starts to gain health instead of absorb it... almost like the triggers are doubling over?
Priest Shield On
Events
Unit - A unit Begins casting an ability
Conditions
(Ability being cast) Equal to Shield
Actions
Set Dummy_Unit = (Target unit of ability being cast)
Trigger - Add to Priest Shield <gen> the event (Unit - Dummy_Unit Takes damage)
------------
Priest Shield
Events
Conditions
((Triggering unit) has buff Shielded) Equal to True
Actions
Game - Display to Player Group - Player 1 (Red) the text: (String((Damage taken)))
Unit - Set life of (Triggering unit) to ((Life of (Triggering unit)) + (Damage taken))
Trigger - Remove (This trigger) from the trigger queue
thanks for the help everyone.