• 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?".
  • Staff applications for our PokéCommunity Daily and Social Media team are now open! Interested in joining staff? Then click here for more info!
  • 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