mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-06 06:01:46 +00:00
Applied code related to deprecated move flag for Magic Coat
This commit is contained in:
@@ -238,6 +238,8 @@ end
|
|||||||
# Multitype/RKS System or has a substitute. (Magic Powder)
|
# Multitype/RKS System or has a substitute. (Magic Powder)
|
||||||
#===============================================================================
|
#===============================================================================
|
||||||
class PokeBattle_Move_17F < PokeBattle_Move
|
class PokeBattle_Move_17F < PokeBattle_Move
|
||||||
|
def canMagicCoat?; return true; end
|
||||||
|
|
||||||
def pbFailsAgainstTarget?(user, target)
|
def pbFailsAgainstTarget?(user, target)
|
||||||
if !target.canChangeType? || !GameData::Type.exists?(:PSYCHIC) ||
|
if !target.canChangeType? || !GameData::Type.exists?(:PSYCHIC) ||
|
||||||
!target.pbHasOtherType?(:PSYCHIC) || !target.affectedByPowder?
|
!target.pbHasOtherType?(:PSYCHIC) || !target.affectedByPowder?
|
||||||
|
|||||||
Reference in New Issue
Block a user