Skip to content
Snippets Groups Projects
Commit 66067749 authored by Chris Davidson's avatar Chris Davidson
Browse files

Fix anti-antimagic quest invuln sometimes bugging

I guess something can have a faction but no setEffect.
parent dfe55243
No related branches found
No related tags found
1 merge request!6001.6.5 misc
......@@ -120,7 +120,7 @@ myssil_dies = function(self)
local corr = nil
for uid, e in pairs(game.level.entities) do
if e.faction == "rhalore" then e:setEffect(e.EFF_VICTORY_RUSH_ZIGUR, 20, {}) end
if e.faction == "rhalore" and e.setEffect then e:setEffect(e.EFF_VICTORY_RUSH_ZIGUR, 20, {}) end
if e.define_as and e.define_as == "GRAND_CORRUPTOR" then corr = e end
end
if not corr then return end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment