Event
Unit a unit starts the effect of an ability.
Condition
Ability being cast Immolation based ability.
Action
Give triggering unit Aura ability
set level of aura ability for triggering unit to level of immolation based spell.
Init Spellbook:
E:Elapsed game time equal to 0.00 seconds.
C:/
A:For Loop IndexA from 1 to *PlayerMaxNumberInYourMap*
Player - Disable *Spellbook_Aura* For Player[IndexA]
Init Aura Drain:
E: A unit starts the effect of an ability
C: Ability being cast equal to Activate Aura
A: Remove Ability being cast from triggering unit
Set Aura Drain[PlayerNumberOfOwnerOftriggeringUnit] = True
Set Aura_Caster[PlayerNumberOfOwnerOfTriggeringUnit] = Triggering Unit
Add Deactivate Aura to triggering unit
Add Spellbook_Aura to triggering unit
Drain Lives / Whatever
E: Every 1 seconds of the game.
C:
A:
For loop index A from 1 to *PlayerMaxNumberInYourMap* do (multiple actions)
If Then Else Actions ( Multiple Actions )
If Aura_Drain[IndexA] equal to true
Then Do:
Set Lives of *Aura_Caster* to Lives of Aura_Caster - 1
Else do:
/
Deactivate Drain:
E: A unit starts the effect of an ability
C: Ability being cast equal to Deactivate Aura
A: Remove Ability being cast from triggering unit
Set Aura Drain[PlayerNumberOfOwnerOftriggeringUnit] = False
Set Aura_Caster[PlayerNumberOfOwnerOfTriggeringUnit] = No Unit
Remove Spellbook_Aura to triggering unit
Add Activate Aura to triggering unit
E - every 1 sec
C -
A - if -xunit's mana is bigger or equal to 1
then - set xunit's mana to xunit's mana - 10
add xxbuff to xunit
else - remove xxbuff from xunit