• 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.
  • Ever thought it'd be cool to have your art, writing, or challenge runs featured on PokéCommunity? Click here for info - we'd love to spotlight your work!
  • Which Pokémon Masters protagonist do you like most? Let us know by casting a vote in our Masters favorite protagonist poll here!
  • Red, Hilda, Paxton, or Kellyn - which Pokémon protagonist is your favorite? Let us know by voting in our 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