Applied code related to deprecated move flag for Magic Coat

This commit is contained in:
Maruno17
2021-07-01 21:11:42 +01:00
parent 0af3fe46bd
commit 536a0b4f9a

View File

@@ -238,6 +238,8 @@ end
# Multitype/RKS System or has a substitute. (Magic Powder)
#===============================================================================
class PokeBattle_Move_17F < PokeBattle_Move
def canMagicCoat?; return true; end
def pbFailsAgainstTarget?(user, target)
if !target.canChangeType? || !GameData::Type.exists?(:PSYCHIC) ||
!target.pbHasOtherType?(:PSYCHIC) || !target.affectedByPowder?