I bumped into a very strange (sry if it's already known) case regarding
AFAIK
But if I use
JassHelper says there's no error when I save the map.
If I use
Why is this happening?
Note that the spell which is creating the 'h001' is based on Tinker's Summon Factory (ANs1).
Also note that
(Well for these two triggers, the spells are Locust Swarm based, maybe this matters?)
TriggerRegisterEnterRectSimple
and TriggerRegisterEnterRegion
.AFAIK
EnterRectSimple
is simply making the rect to region in JASS and calling EnterRegion
for that new region. (TriggerRegister omitted)But if I use
EnterRegion
like below, the trigger is not working AND all triggers below it are not working!JassHelper says there's no error when I save the map.
If I use
EnterRectSimple( gg_trg_SpellA, GetPlayableMapRect() )
, the trigger works well AND all triggers below it work well.Why is this happening?
JASS:
function SpellA_Conditions takes nothing returns boolean
if GetUnitTypeId(GetTriggerUnit()) == 'h001' then
// actions
endif
return false
endfunction
function InitTrig_SpellA takes nothing returns nothing
local trigger t = CreateTrigger()
call TriggerRegisterEnterRegion(t,IPA,null)
call TriggerAddCondition(t, Condition( function SpellA_Conditions ) )
set t = null
endfunction
Note that the spell which is creating the 'h001' is based on Tinker's Summon Factory (ANs1).
Also note that
IPA
is declared at map initialization (elapsed 0 seconds), and my other two triggers which are also using it works well.(Well for these two triggers, the spells are Locust Swarm based, maybe this matters?)
JASS:
set IPA=CreateRegion()
call RegionAddRect(IPA,bj_mapInitialPlayableArea)