Commit 6a65182406d7219c2a4f82d55e72622df9676a58

Authored by K'van
1 parent 294e777b

Fix Purging Trap to not bypass silence immunity.

@@ -1883,8 +1883,12 @@ newTalent{ @@ -1883,8 +1883,12 @@ newTalent{
1883 local who = game.level.map(px, py, engine.Map.ACTOR) 1883 local who = game.level.map(px, py, engine.Map.ACTOR)
1884 if who == self.summoner then return end 1884 if who == self.summoner then return end
1885 if who then 1885 if who then
1886 - who:setEffect(who.EFF_SILENCED, self.dur, {apply_power=self.check_hit})  
1887 1886
  1887 + if who:canBe("silence") then
  1888 + who:setEffect(who.EFF_SILENCED, self.dur, {apply_power=self.check_hit})
  1889 + else
  1890 + game.logSeen(who, "%s resists the silence!", who:getName():capitalize())
  1891 + end
1888 local effs = {} 1892 local effs = {}
1889 1893
1890 -- Go through all spell effects 1894 -- Go through all spell effects