- Joined
- Dec 22, 2007
- Messages
- 35
Does this leak in any way? I do not want to remove the trigger unit
Also, I'm aware that ForGroupBj is leaky, what about ForGroup? Thanks!!
JASS:
local unit u = CreateUnit( GetOwningPlayer(GetTriggerUnit()), 'e002', GetWidgetX(GetTriggerUnit()), GetWidgetY(GetTriggerUnit()), GetUnitFacing(GetTriggerUnit()) )
call UnitDamageTarget( gg_unit_e002_0029, GetTriggerUnit(), 80.00, true, false, ATTACK_TYPE_CHAOS, DAMAGE_TYPE_NORMAL, WEAPON_TYPE_WHOKNOWS)
call UnitAddAbility(u, 'A00O')
call SetUnitAbilityLevel(u, 'A00O', GetUnitAbilityLevel(GetTriggerUnit(), GetSpellAbilityId()) )
call IssueImmediateOrder(u, "spiritwolf" )
call PolledWait(10.00) // for some reason removing the unit removes the units it summoned
call RemoveUnit( u )
set u = null
Also, I'm aware that ForGroupBj is leaky, what about ForGroup? Thanks!!