Class: Battle::Effects::Ability::PurifyingSalt

Inherits:
Ability
  • Object
show all
Defined in:
docs/5_Battle_06_Effects_04_Ability_Effects.rb

Overview

Class describing the Purifying Salt ability effect

Constant Summary collapse

STATUS_MESSAGES =

A constant mapping status effects to their respective message IDs

Returns:

  • (Hash{Symbol => Array<Integer>})
{burn: [19, 270], freeze: [19, 300], paralysis: [19, 285], poison: [19, 252], sleep: [19, 318], toxic: [19, 252]}

Instance Method Summary collapse

Instance Method Details

#on_move_ability_immunity(user, target, move) ⇒ Boolean

Function called when we try to check if the Pokemon is immune to a move due to its effect

Parameters:

Returns:

  • (Boolean) —

    if the target is immune to the move



2855
2856
# File 'docs/5_Battle_06_Effects_04_Ability_Effects.rb', line 2855

def on_move_ability_immunity(user, target, move)
end

#on_status_prevention(handler, status, target, launcher, skill) ⇒ :prevent?

Returns :prevent if the status cannot be applied.

Parameters:

Returns:

  • (:prevent, nil) —

    :prevent if the status cannot be applied



2863
2864
# File 'docs/5_Battle_06_Effects_04_Ability_Effects.rb', line 2863

def on_status_prevention(handler, status, target, launcher, skill)
end

#sp_atk_multiplier(user, target, move) ⇒ Float, Integer

Give the move [Spe]atk mutiplier

Parameters:

Returns:

  • (Float, Integer) —

    multiplier



2870
2871
# File 'docs/5_Battle_06_Effects_04_Ability_Effects.rb', line 2870

def sp_atk_multiplier(user, target, move)
end