Fixed bug caused by strikethrough/underline change, fixed fixed damage moves showing effectiveness messages

This commit is contained in:
Maruno17
2022-10-16 15:52:02 +01:00
parent b41a46aacf
commit 9ad45d6b07
2 changed files with 6 additions and 7 deletions

View File

@@ -272,6 +272,7 @@ class Battle::Move
# Messages upon being hit
#=============================================================================
def pbEffectivenessMessage(user, target, numTargets = 1)
return if self.is_a?(Battle::Move::FixedDamageMove)
return if target.damageState.disguise || target.damageState.iceFace
if Effectiveness.super_effective?(target.damageState.typeMod)
if numTargets > 1