Is it mui? thanks for checking.
-
Purification
-
Events
-
Unit - A unit Starts the effect of an ability
-
-
Conditions
-
(Ability being cast) Equal to Purification
-
-
Actions
-
-------- Config --------
-
Custom script: local location pp = GetSpellTargetLoc()
-
Custom script: local unit pc = GetTriggerUnit()
-
Custom script: local unit pt = GetSpellTargetUnit()
-
Custom script: set udg_Purification_Point = pp
-
Custom script: set udg_Purification_Caster = pc
-
Custom script: set udg_Purification_AllyTarget = pt
-
-------- Heals a friendly unit --------
-
If ((Level of Purification for Purification_Caster) Equal to 1) then do (Unit - Set life of Purification_AllyTarget to ((Life of Purification_AllyTarget) + 90.00)) else do (Do nothing)
-
If ((Level of Purification for Purification_Caster) Equal to 2) then do (Unit - Set life of Purification_AllyTarget to ((Life of Purification_AllyTarget) + 180.00)) else do (Do nothing)
-
If ((Level of Purification for Purification_Caster) Equal to 3) then do (Unit - Set life of Purification_AllyTarget to ((Life of Purification_AllyTarget) + 270.00)) else do (Do nothing)
-
-------- Damage nearby enemy units --------
-
Custom script: set bj_wantDestroyGroup = true
-
Unit Group - Pick every unit in (Units within 165.00 of Purification_Point) and do (Actions)
-
Loop - Actions
-
Set Purification_EnemyTarget = (Picked unit)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Purification_EnemyTarget belongs to an enemy of (Owner of Purification_Caster)) Equal to True
-
-
Then - Actions
-
If ((Level of Purification for Purification_Caster) Equal to 1) then do (Unit - Cause Purification_Caster to damage Purification_EnemyTarget, dealing 90.00 damage of attack type Spells and damage type Magic) else do (Do nothing)
-
If ((Level of Purification for Purification_Caster) Equal to 2) then do (Unit - Cause Purification_Caster to damage Purification_EnemyTarget, dealing 180.00 damage of attack type Spells and damage type Magic) else do (Do nothing)
-
If ((Level of Purification for Purification_Caster) Equal to 3) then do (Unit - Cause Purification_Caster to damage Purification_EnemyTarget, dealing 270.00 damage of attack type Spells and damage type Magic) else do (Do nothing)
-
-
Else - Actions
-
Do nothing
-
-
-
-
-
-------- Remove leak --------
-
Custom script: set pp = null
-
Custom script: set pc = null
-
Custom script: set pt = null
-
Custom script: set udg_Purification_Point = null
-
Custom script: set udg_Purification_Caster = null
-
Custom script: set udg_Purification_AllyTarget = null
-
Custom script: set udg_Purification_EnemyTarget = null
-
-