- Joined
- Oct 25, 2009
- Messages
- 995
It has a spell problem,this is the trigger:
P/S: The Mana Burn is copy from the Immolation(Night Elf Demo Hunter Skill).
- Mana Burn
-
Events
- Unit - A unit Begins casting an ability
-
Conditions
- (Ability being cast) Equal to Mana Burn
-
Actions
- Set MB_Caster = (Casting unit)
- Trigger - Turn on Mana Check <gen>
- Mana Check
-
Events
- Time - Every 0.50 seconds of game time
- Conditions
-
Actions
- Set MB_UnitGroup = (Units within 160.00 of (Position of MB_Caster) matching ((((Matching unit) is alive) Equal to True) and (((Matching unit) belongs to an enemy of (Owner of MB_Caster)) Equal to True)))
-
Unit Group - Pick every unit in MB_UnitGroup and do (Actions)
-
Loop - Actions
- Unit - Set mana of MB_Caster to (1.00 + (1.00 x (Real((Level of Mana Burn for MB_Caster)))))%
- Unit - Set mana of (Picked unit) to ((Percentage mana of (Picked unit)) - (2.50 + (2.50 x (Real((Level of Mana Burn for MB_Caster))))))%
-
Loop - Actions
- Custom script: call DestroyGroup(udg_MB_UnitGroup)
- Mana Burn Off
-
Events
- Unit - A unit Stops casting an ability
-
Conditions
- (Ability being cast) Equal to Mana Burn
-
Actions
- Trigger - Turn off Mana Check <gen>
P/S: The Mana Burn is copy from the Immolation(Night Elf Demo Hunter Skill).