- Joined
- Sep 6, 2007
- Messages
- 440
Ok, I made a regeneration ability which is added to the caster unit after the casts the spell. The problem is I have problems on making it MUI and when 2 person casts it, the ability isn't removed! Helps
-
Charge
-
Events
- Unit - A unit Starts the effect of an ability
-
Conditions
- (Ability being cast) Equal to Lightning Fury
-
Actions
- Custom script: local unit udg_Caster
- Custom script: local effect udg_AEffect
- Set Caster = (Casting unit)
- Set Pos1 = (Position of Caster)
- Set AGroup2 = (Units within 300.00 of Pos1 matching ((((Matching unit) is alive) Equal to True) and ((((Matching unit) belongs to an enemy of (Owner of Caster)) Equal to True) and (((Matching unit) is A structure) Equal to False))))
- Unit - Add HP REGEN to Caster
- Set HpRegen = HP REGEN
- Unit - Set level of HpRegen for Caster to (Level of Lightning Fury for Caster)
- Special Effect - Create a special effect attached to the chest of Caster using Abilities\Spells\Orc\Purge\PurgeBuffTarget.mdl
- Set AEffect = (Last created special effect)
-
Unit Group - Pick every unit in AGroup2 and do (Actions)
-
Loop - Actions
- Unit - Cause Caster to damage (Picked unit), dealing ((Real((Intelligence of Caster (Include bonuses)))) x (Real((Level of Lightning Fury for Caster)))) damage of attack type Spells and damage type Lightning
- -------- This is where the damage is dealt. You can edit it by changing the properties of Arithmetic. --------
- Special Effect - Create a special effect attached to the origin of (Picked unit) using Abilities\Spells\Human\ManaFlare\ManaFlareBoltImpact.mdl
-
Loop - Actions
- Wait ((Real((Level of Lightning Fury for Caster))) x 2.00) seconds
- Unit - Remove HpRegen from Caster
- Special Effect - Destroy AEffect
- Custom script: call DestroyGroup(udg_AGroup2)
- Custom script: call RemoveLocation(udg_Pos1)
-
Events