Skip to content
Snippets Groups Projects
Commit 6aca818f authored by DarkGod's avatar DarkGod
Browse files

lol

parent 7321ffc1
No related branches found
No related tags found
No related merge requests found
......@@ -199,7 +199,7 @@ newAI("shadow", function(self)
self.summon_time = self.summon_time - 1
-- make sure no one has turned us against our summoner
if self:isMySummoner(self.ai_target.actor) then
if self.isMySummoner and self:isMySummoner(self.ai_target.actor) then
clearTarget(self)
end
......
......@@ -34,7 +34,7 @@ local Map = require "engine.Map"
local Level = require "engine.Level"
local resolveSource = function(self)
if self.src then
if self.src and self.src.resolveSource then
return self.src:resolveSource()
else
return self
......
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