Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to |cffFF00CCTiÕng Gäi Quª H¬ng|r
Actions
Set LavaUnit = (Triggering unit)
Set TempLavaUnit = (Position of LavaUnit)
Set TempLavaTarger = (Target point of ability being cast)
Set AngleWave = (Angle from TempLavaUnit to TempLavaTarger)
For each (Integer A) from 1 to ((Level of |cffFF00CCTiÕng Gäi Quª H¬ng|r for LavaUnit) x 5), do (Actions)
Loop - Actions
Unit - Create 1 Lava Dummy for (Owner of LavaUnit) at (TempLavaUnit offset by ((Real((Integer A))) x 175.00) towards AngleWave degrees) facing (Facing of LavaUnit) degrees
Set LavaDummy[(Integer A)] = (Last created unit)
Set TempLavaDummy[(Integer A)] = (Position of LavaDummy[(Integer A)])
Unit - Add a 2.00 second Generic expiration timer to LavaDummy[(Integer A)]
Set LavaGroup = (Units within 300.00 of TempLavaDummy[(Integer A)] matching ((((Matching unit) belongs to an enemy of (Owner of LavaUnit)) Equal to True) and (((Matching unit) is alive) Equal to True)))
Unit Group - Pick every unit in LavaGroup and do (Actions)
Loop - Actions
Unit - Cause LavaUnit to damage (Picked unit), dealing (((Real((Level of |cffFF00CCTiÕng Gäi Quª H¬ng|r for LavaUnit))) x 5.00) x (Real((Strength of LavaUnit (Exclude bonuses))))) damage of attack type Hero and damage type Defensive
Floating Text - Create floating text that reads ((String(((Real((Strength of LavaUnit (Include bonuses)))) x ((Real((Level of |cffFF00CCTiÕng Gäi Quª H¬ng|r for LavaUnit))) x 5.00)))) + damage) at (Position of (Picked unit)) with Z offset 0.00, using font size 10.50, color (100.00%, 32.00%, 32.00%), and 0.00% transparency
Floating Text - Set the velocity of (Last created floating text) to 64.00 towards 90.00 degrees
Floating Text - Change (Last created floating text): Disable permanence
Floating Text - Change the lifespan of (Last created floating text) to 2.00 seconds
Custom script: call RemoveLocation(udg_TempLavaUnit)
Custom script: call RemoveLocation(udg_TempLavaTarger)
Custom script: call RemoveLocation(udg_TempLavaDummy[GetForLoopIndexA()])
Custom script: call DestroyGroup(udg_LavaGroup)