Merge pull request #9 from jonisavo/pokemon-use-hasItem

Refactor PokeBattle_Pokemon#hasItem? and use it instead of Object.isConst?
This commit is contained in:
Maruno17
2020-09-06 17:39:02 +01:00
committed by GitHub
9 changed files with 40 additions and 40 deletions

View File

@@ -25,7 +25,7 @@ class PokeBattle_Battle
if !expAll
eachInTeam(0,0) do |pkmn,i|
next if !pkmn.able?
next if !isConst?(pkmn.item,PBItems,:EXPSHARE) &&
next if !pkmn.hasItem?(:EXPSHARE) &&
!isConst?(@initialItems[0][i],PBItems,:EXPSHARE)
expShare.push(i)
end