Hello, I need to make an ability with added buffs. The ability itself its Spirit link (well I called it United!). I need that when you cast United! ability, the units with the United buff! have increased life regeneration (3 levels 1, 2 and 3 life regeneration for each level.
I have the following triggers.
It doesnt seem to work. I think there is a problem with the variable regen bonus but I cant seem to find to add the ability in the variable. Any help?
I have the following triggers.
-
spiritlinksetup
-

Events
-


Map initialization
-
-

Conditions
-

Actions
-


Set VariableSet regenbonus[1] = (Unit: No unit's Ability with Ability Code: Liferegeneration1 )
-


Set VariableSet regenbonus[2] = (Unit: No unit's Ability with Ability Code: Liferegeneration2 )
-


Set VariableSet regenbonus[3] = (Unit: No unit's Ability with Ability Code: Liferegeneration3 )
-
-
-
spiritlinkguardregeneration
-

Events
-


Unit - A unit Starts the effect of an ability
-
-

Conditions
-


(Ability being cast) Equal to United We Stand!
-
-

Actions
-


Set VariableSet unitedduration = 20.00
-


Unit Group - Pick every unit in (Units within 600.00 of (Target point of ability being cast) matching (((Matching unit) has buff United! ) Equal to True).) and do (Actions)
-



Loop - Actions
-




Set VariableSet linkunit = (Picked unit)
-




If ((Level of United We Stand! for (Triggering unit)) Equal to 1) then do (Unit - Add Liferegeneration1 to linkunit) else do (If ((Level of United We Stand! for (Triggering unit)) Equal to 2) then do (Unit - Add Liferegeneration2 to linkunit) else do (If ((Level of United We Stand! for (Triggering unit)) Equal to 3) then do (Unit - Add Liferegeneration3 to linkunit) else do (Do
-
-
-
-
It doesnt seem to work. I think there is a problem with the variable regen bonus but I cant seem to find to add the ability in the variable. Any help?





