Our software update is now concluded. You will need to reset your password to log in. In order to do this, you will have to click "Log in" in the top right corner and then "Forgot your password?".
Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.
In def pbEffectAfterAllHits make the following change:
def pbEffectAfterAllHits(user, target)
return if target.fainted?
return if target.damageState.unaffected || target.damageState.substitute
# return if target.effects[PBEffects::Attract] >= 0
return if...
It appears to be an ID mismatch. If you change the first argument to @event_id that makes the event become the follower event without the possibility of an ID mismatch error.
Not quite. My initial code had a bug. What I would suggest is in the Pokemon script as follows:
# @return [Boolean] whether this Pokémon is shiny (differently colored)
def shiny?
if @shiny.nil?
a = @personalID ^ @owner.id
b = a & 0xFFFF
c = (a >> 16) & 0xFFFF
d =...
What you should do is use two separate arrays for the two values you're working with.
class Battle::Move::HealAllyOrDamageFoeAndCureTargetBurn < Battle::Move
def pbEffectWhenDealingDamage(user, target)
hitAllyId = []
hitAllyHp = []
battler.allAllies.each do |b|
next if...
Sounds like the standard incense item mechanic that changes the newly-hatched Pokémon's species to their baby form (e.g. a female Snorlax holding a Full Incense will lay a Munchlax egg instead of a Snorlax egg). Try copying that. No alternate forms are necessary.
Remember that each of the regional 'dexes is defined for a separate region. If you want Pikipek to display in that regional 'dex, the map needs to be part of the Alola-dex region. To do that, go to map_metadata and look for the MapPosition metadata tag for the map in question. It takes three...