i have made spell. here the triggers:
i want to ask. if this spell would be used by two or more players, spell would work correctly?
Code:
fire
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Fire
Actions
[U]Set triggeringunit = (Triggering unit)[/U]
Unit Group - Add (Target unit of ability being cast) to fireg
Special Effect - Create a special effect attached to the origin of (Target unit of ability being cast) using Abilities\Weapons\RedDragonBreath\RedDragonMissile.mdl
Unit - Cause (Triggering unit) to damage (Target unit of ability being cast), dealing (Mana of (Triggering unit)) damage of attack type Spells and damage type Fire
Special Effect - Destroy (Last created special effect)
Code:
magecheck
Events
Time - Every 1.00 seconds of game time
Conditions
Actions
Unit Group - Pick every unit in fireg and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Picked unit) has buff Fire ) Equal to True
Then - Actions
Unit - Cause [U]triggeringunit[/U] to damage (Picked unit), dealing ((Mana of [U]triggeringunit[/U]) / 20.00) damage of attack type Spells and damage type Fire
Else - Actions
Unit Group - Remove (Picked unit) from fireg
i want to ask. if this spell would be used by two or more players, spell would work correctly?