mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-09 22:24:58 +00:00
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:
@@ -238,7 +238,7 @@ def pbTradeCheckEvolution(pokemon,pokemon2)
|
||||
next poke
|
||||
end
|
||||
when PBEvolution::TradeSpecies
|
||||
if !isConst?(pokemon2.item,PBItems,:EVERSTONE)
|
||||
if !pokemon2.hasItem?(:EVERSTONE)
|
||||
next poke if pokemon2.species==level
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user