Added $player.has_box_link and $player.has_exp_all in addition to those items

This commit is contained in:
Maruno17
2021-12-14 22:33:46 +00:00
parent 7d2e1027cd
commit b706843888
3 changed files with 8 additions and 2 deletions

View File

@@ -8,7 +8,7 @@ class Battle
return if !@internalBattle || !@expGain
# Go through each battler in turn to find the Pokémon that participated in
# battle against it, and award those Pokémon Exp/EVs
expAll = $bag.has?(:EXPALL)
expAll = $player.has_exp_all || $bag.has?(:EXPALL)
p1 = pbParty(0)
@battlers.each do |b|
next unless b && b.opposes? # Can only gain Exp from fainted foes