In my map, all of a sudden my Raze ability won't work, I'm thinking the code got messed up, is this correct:
When you click raze, the building is destroyed.
Code:
function Trig_Raze_Conditions takes nothing returns boolean
if(not(GetSpellAbilityId()=='A00L'))then
return false
endif
return true
endfunction
function Trig_Raze_Actions takes nothing returns nothing
call KillUnit(GetSpellAbilityUnit())
endfunction
When you click raze, the building is destroyed.