Class: Battle::Move::AddThirdType
Overview
Move that give a third type to an enemy
Constant Summary collapse
- TYPES =
Mapping of move symbols to types
{trick_or_treat: :ghost, forest_s_curse: :grass}
Instance Method Summary collapse
-
#deal_effect(user, actual_targets)
Function that deals the effect to the pokemon.
-
#message(target) ⇒ String
Get the message text.
-
#new_type ⇒ Integer
Get the type given by the move.
-
#target_immune?(user, target) ⇒ Boolean
Test if the target is immune.
Instance Method Details
#deal_effect(user, actual_targets)
Function that deals the effect to the pokemon
1708 1709 |
# File 'docs/5_Battle_10_Move.rb', line 1708 def deal_effect(user, actual_targets) end |
#message(target) ⇒ String
Get the message text
1716 1717 |
# File 'docs/5_Battle_10_Move.rb', line 1716 def (target) end |
#new_type ⇒ Integer
Get the type given by the move
1712 1713 |
# File 'docs/5_Battle_10_Move.rb', line 1712 def new_type end |
#target_immune?(user, target) ⇒ Boolean
Test if the target is immune
1703 1704 |
# File 'docs/5_Battle_10_Move.rb', line 1703 def target_immune?(user, target) end |