Class: Battle::Move::AddThirdType

Inherits:
Move
  • Object
show all
Defined in:
docs/5_Battle_10_Move.rb

Overview

Move that give a third type to an enemy

Constant Summary collapse

TYPES =

Mapping of move symbols to types

Returns:

  • (Hash{Symbol => Symbol})
{trick_or_treat: :ghost, forest_s_curse: :grass}

Instance Method Summary collapse

Instance Method Details

#deal_effect(user, actual_targets)

Function that deals the effect to the pokemon

Parameters:



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

Returns:



1716
1717
# File 'docs/5_Battle_10_Move.rb', line 1716

def message(target)
end

#new_type ⇒ Integer

Get the type given by the move

Returns:

  • (Integer) —

    the ID of 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

Parameters:

Returns:

  • (Boolean)


1703
1704
# File 'docs/5_Battle_10_Move.rb', line 1703

def target_immune?(user, target)
end