if a pokemon breaks out of a safari ball, after having been fed with a bait or thrown at with a rock, it's sprite will slide down behind the players control bar. it stays there for the rest of the battle. this happens in a clean version.
STORAGEBOXES = 24
# Initialize opponent in single battles
trainerpoke=@party2[0]
trainerpoke=@party2[sendout]
--------------------------After line 'def pbEndScene' add line '$game_map.autoplay'.After an egg hatches, the BGM of the map the player is in doesn't start playing again unless the player leaves and re-enters the map. Any way to fix this?
if skill>=PBTrainerAI.highSkill
accuracy*=0.8 if attacker.hasWorkingAbility(:HUSTLE) &&
move.basedamage>0 &&
move.pbIsPhysical?([COLOR="Red"]move.[/COLOR]pbType(move.type,attacker,opponent))
end
if hasWorkingAbility(:VITALSPIRIT) ||
hasWorkingAbility(:INSOMNIA) ||
(hasWorkingAbility(:LEAFGUARD) && @battle.pbWeather==PBWeather::SUNNYDAY)
abilityname=PBAbilities.getName(self.ability)
@battle.[COLOR="Red"]pbDispbIncreaseStatplay[/COLOR](_INTL("{1} stayed awake using its {2}!",pbThis,abilityname)) if showMessages
return false
end
pbIncreaseStatplay
# Fade out and hide all sprites
visiblesprites=pbFadeOutAndHide(@sprites)
pbShowWindow(BLANK)
pbSetMessageMode(true)
modparty=[]
for i in 0...6
modparty.push(party[partypos[i]])
end
# Fade out and hide all sprites
pbShowWindow(BLANK)
pbSetMessageMode(true)
modparty=[]
for i in 0...6
modparty.push(party[partypos[i]])
end
visiblesprites=pbFadeOutAndHide(@sprites)
---------------------------
Pokemon Essentials
---------------------------
Exception: NameError
Message: uninitialized constant PokeBattle_Pokemon::PBStats
PokeBattle_Pokemon:806:in `calcStats'
PokeBattle_Pokemon:804:in `each'
PokeBattle_Pokemon:804:in `calcStats'
PokeBattle_Pokemon:884:in `initialize'
PTrainer_NPCTrainers:128:in `new'
PTrainer_NPCTrainers:128:in `pbNewTrainer'
PTrainer_NPCTrainers:114:in `loop'
PTrainer_NPCTrainers:137:in `pbNewTrainer'
PTrainer_NPCTrainers:108:in `each'
PTrainer_NPCTrainers:108:in `pbNewTrainer'
This exception was logged in
Saved Games/Pokemon Essentials/errorlog.txt.
Wherever you found that, it wasn't in v15 or v15.1.I found a possible bug in PokeBattle_AI. (Present in both v15 and v15.1)
At 2 instances it checks whether "[PBEffects::StealthRock]>0", while [PBEffects::StealthRock] actually is a boolean. I fixed it by replacing ">0" by "==true".