java.lang.Object
com.pixelmonmod.pixelmon.api.pokemon.ability.AbstractAbility
com.pixelmonmod.pixelmon.api.pokemon.ability.abilities.FriendGuard
All Implemented Interfaces:
Ability, RarityTweak, ITranslatable

public class FriendGuard extends AbstractAbility
Reduces damage from teammates to 75%.
  • Constructor Details

    • FriendGuard

      public FriendGuard()
  • Method Details

    • modifyDamageTeammate

      public int modifyDamageTeammate(int damage, PixelmonWrapper user, PixelmonWrapper opponent, Attack a)
      Description copied from interface: Ability
      Triggers when the Pokémon's ally takes direct damage.
      Parameters:
      damage - The amount of damage dealt.
      user - The attack's user.
      opponent - The attack's target.
      a - The attack.
      Returns:
      The modified damage.
    • canBeIgnored

      public boolean canBeIgnored()
      Description copied from interface: Ability
      Returns whether the ability can be bypassed by moves that ignore abilities or not. e.g. Moldbreaker or G-Max Drum Solo
      Returns:
      Whether the ability can be ignored.