Fixed Toxic damage only going up to 15/16 of total HP, minor code fixes

This commit is contained in:
Maruno17
2021-12-05 20:20:30 +00:00
parent 479aeacc2c
commit 3650a078e7
5 changed files with 11 additions and 22 deletions

View File

@@ -564,7 +564,7 @@ class Battle::Move::PledgeMove < Battle::Move
end
def pbEffectGeneral(user)
user.effects[PBEffects::FirstPledge] = 0
user.effects[PBEffects::FirstPledge] = nil
return if !@pledgeSetup
@battle.pbDisplay(_INTL("{1} is waiting for {2}'s move...",
user.pbThis,@pledgeOtherUser.pbThis(true)))

View File

@@ -380,8 +380,7 @@ class Battle::Move::TrapUserAndTargetInBattle < Battle::Move
end
#===============================================================================
# No Pokémon can switch out or flee until the end of the next round, as long as
# the user remains active. (Fairy Lock)
# No Pokémon can switch out or flee until the end of the next round. (Fairy Lock)
#===============================================================================
class Battle::Move::TrapAllBattlersInBattleForOneTurn < Battle::Move
def pbMoveFailed?(user,targets)