public class PreventRedirect extends AttackModifierBase
Makes the move ignore attack redirection.
  • Constructor Details

    • PreventRedirect

      public PreventRedirect(Value... values)
      Initializes the modifier.
      Parameters:
      values - Indicates that the move always prevents redirection.
  • Method Details

    • preventsRedirection

      public boolean preventsRedirection(PixelmonWrapper user, Attack attack)
      Description copied from class: EffectBase
      Prevents redirection abilities and moves from changing the targets of the user's attacks
      Overrides:
      preventsRedirection in class EffectBase
      Parameters:
      user - The Pokémon using the attack.
      attack - The attack.
      Returns:
      Whether the attack will maintain its target.