1
0
mirror of https://gitlab.com/Deukhoofd/BattleSim.git synced 2025-10-27 18:00:03 +00:00

Made Ethereal Shroud handle immunities better, removed log spam of eeveelutions

This commit is contained in:
Deukhoofd
2016-02-27 18:56:21 +01:00
parent 1fc7b2ecbf
commit 7107926865
4 changed files with 4 additions and 3 deletions

View File

@@ -472,6 +472,10 @@ class @Pokemon
return false if options.move?.ignoresImmunities()
multiplier = @effectivenessOf(type, options)
if @hasAbility("Ethereal Shroud")
ghosteffect = util.typeEffectiveness(type, ["Ghost"])
if ghosteffect < 1
multiplier *= ghosteffect
return multiplier == 0
effectivenessOf: (type, options) ->