hi i made i spell which i want to refer to allies . the heal doesnt work could you tell me whats wrong and how to do it properly ?
Einheit - A unit Beginnt, eine Fähigkeit zu wirken
_______________________________________
(Ability being cast) Gleich Inneres Feuer
________________________________________
Set InnerFireCaster = (Casting unit)
Set InnerFireUnitGroup = (Units within 512.00 of (Position of InnerFireCaster) matching (((Picked unit) belongs to an ally of (Owner of InnerFireCaster)) Gleich True))
________________________________________________
Einheitengruppe - Pick every unit in InnerFireUnitGroup and do (Actions)
Schleifen - Aktionen
Einheit - Set life of (Picked unit) to ((Leben of (Picked unit)) + ((Real((Hero level of InnerFireCaster))) x 10.00))%
Spezialeffekt - Create a special effect attached to the overhead of (Picked unit) using Abilities\Spells\NightElf\Tranquility\TranquilityTarget.mdl
__________________________________________________
. . . something must be wrong with thre variable i think , because if i set it to : "Units within 512.00 of Position of InnerFireCaster" the heal is working , too bad also working on enemys .... i dont want it to work on enemys how can i fix it ?
Einheit - A unit Beginnt, eine Fähigkeit zu wirken
_______________________________________
(Ability being cast) Gleich Inneres Feuer
________________________________________
Set InnerFireCaster = (Casting unit)
Set InnerFireUnitGroup = (Units within 512.00 of (Position of InnerFireCaster) matching (((Picked unit) belongs to an ally of (Owner of InnerFireCaster)) Gleich True))
________________________________________________
Einheitengruppe - Pick every unit in InnerFireUnitGroup and do (Actions)
Schleifen - Aktionen
Einheit - Set life of (Picked unit) to ((Leben of (Picked unit)) + ((Real((Hero level of InnerFireCaster))) x 10.00))%
Spezialeffekt - Create a special effect attached to the overhead of (Picked unit) using Abilities\Spells\NightElf\Tranquility\TranquilityTarget.mdl
__________________________________________________
. . . something must be wrong with thre variable i think , because if i set it to : "Units within 512.00 of Position of InnerFireCaster" the heal is working , too bad also working on enemys .... i dont want it to work on enemys how can i fix it ?