- Joined
- Mar 23, 2008
- Messages
- 942
JASS:
private function DamageType takes nothing returns nothing
local group kunit = GetUnitsInRectAll(gg_rct_Region_000)
local unit tempunit = FirstOfGroup(kunit)
call DisplayTextToForce(GetPlayersAll(), "Casting a 100 damage chain lighting")
call CreateUnitAtLoc(Player(PLAYER_NEUTRAL_AGGRESSIVE), 'n000', GetRectCenter(gg_rct_Region_001), 90)
call IssueTargetOrderBJ(GetLastCreatedUnit(), "chainlightning", tempunit)
call UnitApplyTimedLife(GetLastCreatedUnit(), 'BTLF', 3)
call FDamage()
call DestroyGroup(kunit)
set kunit = null
set tempunit = null
endfunction