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

public class FlowerVeil extends AbstractAbility
Prevents Grass-type teammates from being afflicted with statuses or stat drops.
  • Constructor Details

    • FlowerVeil

      public FlowerVeil()
  • Method Details

    • allowsStatusTeammate

      public boolean allowsStatusTeammate(StatusType status, PixelmonWrapper pokemon, PixelmonWrapper target, PixelmonWrapper user)
      Description copied from interface: Ability
      Fires for all teammates when a status attempts to be applied.
      Parameters:
      status - The status being afflicted.
      pokemon - The Pokémon with the Ability.
      target - The Pokémon who is being afflicted with the status.
      user - The Pokémon inflicting the status.
      Returns:
      Whether the status can be afflicted.
    • allowsStatChangeTeammate

      public boolean allowsStatChangeTeammate(PixelmonWrapper pokemon, PixelmonWrapper target, PixelmonWrapper user, StatsEffect e)
      Description copied from interface: Ability
      Whether a teammate's Ability allows a stat to be modified.
      Parameters:
      pokemon - The Pokémon with the Ability.
      target - The Pokémon whose stat is to be lowered.
      user - The attack's user.
      e - The stat modifier.
      Returns:
      Whether the stat modifier can occur.