- Joined
- Aug 18, 2013
- Messages
- 71
Heys guys, Anytime I enable this trigger in Vanilla world editor, windows brings up the message "World Editor has stopped working" etc. and I have to force close the editor. Any Ideas?
kinda made me mad as I lost about an hour of coding due to this crash
JASS:
function Trig_SplitOneBonusHealth_Actions takes nothing returns nothing
local integer s = GetLearnedSkill()
local integer l = GetLearnedSkillLevel()
local unit u = GetLearningUnit()
if(s == 'A03E') then
if(l == 2) then
call UnitAddItem(u,'I02P')
endif
endif//end if
endfunction
//===========================================================================
function InitTrig_SplitOneBonusHealth takes nothing returns nothing
local trigger t = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( t, EVENT_PLAYER_HERO_SKILL )
call TriggerAddAction( t, function Trig_SplitOneBonusHealth_Actions )
set t = null
endfunction
kinda made me mad as I lost about an hour of coding due to this crash