So you can do this:
But when I do this the trigger cuts off:
With units, this approach works just fine, for example:
Am I missing something obvious?
JASS:
local effect sfx = AddSpecialEffect("some effect", x, y)
JASS:
local effect sfx
set sfx = AddSpecialEffect("some effect", x, y)
JASS:
local unit u
set u = CreateUnit(Player(PLAYER_NEUTRAL_PASSIVE), 'n000', x, y, 270.)