Feature/more zones (#55)

This commit is contained in:
Spencer Shepard
2023-05-18 22:25:32 -07:00
committed by GitHub
parent e8bd6b2972
commit 16d67473b0
5 changed files with 83 additions and 5 deletions

View File

@@ -1103,7 +1103,7 @@ function handle:onEvent(e)
env.warning('KILL: initiator is not a unit')
return
end
if e.initiator:getCoalition() ~= e.target:getCoalition() then
if e.initiator:getCoalition() and e.initiator:getCoalition() ~= e.target:getCoalition() then
debugMsg('KILL: initiator groupname: ' .. e.initiator:getGroup():getName())
local initiator_group_name = e.initiator:getGroup():getName()