Skip to content
Snippets Groups Projects
Commit 4b2d4a59 authored by DarkGod's avatar DarkGod
Browse files

Aether Avatar correctly removes physical and magical effects

parent 0ab0a02e
No related branches found
No related tags found
No related merge requests found
Pipeline #
......@@ -248,7 +248,7 @@ newTalent{
local aegis
self:setEffect(self.EFF_AETHER_AVATAR, t.getNb(self, t), {})
if self:isTalentActive(self.T_PURE_AETHER) and self:getTalentLevel(self.T_PURE_AETHER) >= 5 then
self:removeEffectsFilter(self, {type="physical", status="detrimental"}, self:callTalent(self.T_PURE_AETHER, "getNbRemove"))
self:removeEffectsFilter(self, function(eff) return eff.status == "detrimental" and (eff.type == "physical" or eff.type == "magical") end, self:callTalent(self.T_PURE_AETHER, "getNbRemove"))
end
game:playSoundNear(self, "talents/arcane")
return true
......
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