Commit 8147127fa0b08c78358e7e67a7552119b9f2c572

Authored by DarkGod
1 parent a600a7ef

Fixed Stone Warden Halves bug

... ... @@ -527,6 +527,7 @@ function _M:addedToLevel(level, x, y)
527 527 local inven, worn = self:getInven(o:wornInven())
528 528 if inven and game.state:checkPowers(self, o, nil, "antimagic_only") then -- check antimagic restrictions
529 529 local ro, replace = inven and inven[1], false
  530 + print("====", self.inven[self.INVEN_INVEN][i].uid)
530 531 o = self:removeObject(self.INVEN_INVEN, i)
531 532 if o then
532 533
... ...
... ... @@ -88,7 +88,7 @@ newTalent{
88 88 -- Find space
89 89 local x, y = util.findFreeGrid(self.x, self.y, 1, true, {[Map.ACTOR]=true})
90 90 if x then
91   - local m = require("mod.class.NPC").new(self:clone{
  91 + local m = require("mod.class.NPC").new(self:cloneFull{
92 92 shader = "shadow_simulacrum", shader_args = {time_factor=1000, base=0.5, color={0.6, 0.3, 0.6}},
93 93 no_drops = true,
94 94 faction = self.faction,
... ... @@ -151,7 +151,7 @@ newTalent{
151 151 -- Find space
152 152 local x, y = util.findFreeGrid(self.x, self.y, 1, true, {[Map.ACTOR]=true})
153 153 if x then
154   - local m = require("mod.class.NPC").new(self:clone{
  154 + local m = require("mod.class.NPC").new(self:cloneFull{
155 155 shader = "shadow_simulacrum", shader_args = {time_factor=-8000, base=0.5, color={0.6, 0.4, 0.3}},
156 156 no_drops = true,
157 157 faction = self.faction,
... ...