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:
@@ -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) ->
|
||||
|
||||
Reference in New Issue
Block a user