• 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!
  • Akari, Red, Kris, May - which Pokémon protagonist is your favorite? Let us know by voting in our semifinal favorite protagonist poll!
  • 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.

[Scripting Question] Scripting Ability - More damage if opponent is evolved

Impo

Playhouse Pokemon
  • 2,436
    Posts
    15
    Years
    Hi all,

    Sorry for the potentially silly question:

    Is there a way to check if the target in a battle is an evolved form? I want to implement an ability that increases damage if the opponent is evolved

    Code:
    BattleHandlers::DamageCalcUserAbility.add(:UNDERESTIMATED,
      proc { |ability,user,target,move,mults,baseDmg,type|
        mults[:attack_multiplier] *= 1.5 if target.???
      }
    )

    I'm not sure what property to check on the target object to see if it's evolved.

    Thanks for any help :)
     
    Back
    Top