mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-09 14:14:59 +00:00
Merge branch 'dev' into ai
This commit is contained in:
@@ -836,7 +836,7 @@ class Battle::Move::SetTargetTypesToPsychic < Battle::Move
|
||||
|
||||
def pbFailsAgainstTarget?(user, target, show_message)
|
||||
if !target.canChangeType? || !GameData::Type.exists?(:PSYCHIC) ||
|
||||
!target.pbHasOtherType?(:PSYCHIC) || !target.affectedByPowder?
|
||||
!target.pbHasOtherType?(:PSYCHIC)
|
||||
@battle.pbDisplay(_INTL("But it failed!")) if show_message
|
||||
return true
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user