Class: Battle::Move::ChangeType
Overview
Move that give a third type to an enemy
Direct Known Subclasses
Constant Summary collapse
- TYPES =
Type given by the move
{soak: :water, magic_powder: :psychic}
- ABILITY_EXCEPTION =
Abilities that prevent the type change
%i[multitype rks_system]
Instance Method Summary collapse
-
#condition(target) ⇒ Boolean
Method that tells if the Move's effect can proceed.
-
#deal_effect(user, actual_targets)
Function that deals the effect to the pokemon.
-
#message(target) ⇒ String
Get the message text.
-
#move_usable_by_user(user, targets) ⇒ Boolean
Function that tests if the user is able to use the move.
-
#new_type ⇒ Integer
Get the type given by the move.
-
#type_check(target) ⇒ Boolean
Method that tells if the target already has the type.
Instance Method Details
#condition(target) ⇒ Boolean
Method that tells if the Move's effect can proceed
2353 2354 |
# File 'docs/5_Battle_10_Move.rb', line 2353 def condition(target) end |
#deal_effect(user, actual_targets)
Function that deals the effect to the pokemon
2348 2349 |
# File 'docs/5_Battle_10_Move.rb', line 2348 def deal_effect(user, actual_targets) end |
#message(target) ⇒ String
Get the message text
2366 2367 |
# File 'docs/5_Battle_10_Move.rb', line 2366 def (target) end |
#move_usable_by_user(user, targets) ⇒ Boolean
Function that tests if the user is able to use the move
2343 2344 |
# File 'docs/5_Battle_10_Move.rb', line 2343 def move_usable_by_user(user, targets) end |
#new_type ⇒ Integer
Get the type given by the move
2362 2363 |
# File 'docs/5_Battle_10_Move.rb', line 2362 def new_type end |
#type_check(target) ⇒ Boolean
Method that tells if the target already has the type
2358 2359 |
# File 'docs/5_Battle_10_Move.rb', line 2358 def type_check(target) end |