• Just a reminder that providing specifics on, sharing links to, or naming websites where ROMs can be accessed is against the rules. If your post has any of this information it will be removed.
  • Our friends from the Johto Times are hosting a favorite Pokémon poll - and we'd love for you to participate! Click here for information on how to vote for your favorites!
  • Serena, Kris, Dawn, Red - which Pokémon protagonist is your favorite? Let us know by voting in our grand final favorite protagonist poll!
  • PokéCommunity supports the Stop Killing Games movement. If you're a resident of the UK or EU, consider signing one of the petitions to stop publishers from destroying games. Click here for more information!
  • 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.

Super effective berry damage calculation bug

  • 2
    Posts
    9
    Years
    • Seen Oct 8, 2015
    (error message in attachments because I don't have enough posts to put image link in the post)
    I had this issue when using an ice attack on a Starly with a Yache berry during testing.
    Damage calculation was cancelled and the Starly recieved no damage from my Glalie's Frost Breath attack.
    Looking through the code, I could not see what the issue was, but I'm not talented with Ruby.
    Does anyone have any idea how to fix this?
    I'm using the newest version of Essentials, and have added the Elite Battling System and Gen 6 mechanics. Other changes are solely visual.

    Because my attachment seems to not have worked below is the error message I get:
    Code:
    Exception: NoMethodError
    Message: undefined method '[]=' for nil:NilClass
    PokeBattle_Move:1331:in 'pbCalcDamage'
    PokeBattle_Move:1452:in 'pbEffect'
    PokeBattle__Battle:3128:in 'pbProcessMoveAgainstTarget
    PokeBattle_Battler:3086:in 'each'
    PokeBattle_Battler:3086:in 'pbProcessMoveAgainstTarget
    PokeBattle_Battler:3499:in 'pbUseMove
    PokeBattle_Battler:3473:in 'loop'
    PokeBattle_Battler:3502:in 'pbUseMove'
    PokeBattle_Battler:3705:in 'pbProcessTurn'
    PokeBattle_Battler:3704: 'logonerr'
     
    Last edited:
    Updated OP with the error message as the attachment doesn't seem to be showing. Maybe I just don't know how to use the site...
     
    Back
    Top