Commit 6a65182406d7219c2a4f82d55e72622df9676a58
1 parent
294e777b
Fix Purging Trap to not bypass silence immunity.
Showing
1 changed file
with
5 additions
and
1 deletions
... | ... | @@ -1883,8 +1883,12 @@ newTalent{ |
1883 | 1883 | local who = game.level.map(px, py, engine.Map.ACTOR) |
1884 | 1884 | if who == self.summoner then return end |
1885 | 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 | 1892 | local effs = {} |
1889 | 1893 | |
1890 | 1894 | -- Go through all spell effects | ... | ... |
-
Please register or login to post a comment