Class: Battle::Move::MultiHit
- Defined in:
- docs/5_Battle_10_Move.rb
Overview
Class describing a move hitting multiple time
Direct Known Subclasses
Constant Summary collapse
- MULTI_HIT_CHANCES =
Number of hit randomly picked from that array
[2, 2, 2, 3, 3, 5, 4, 3]
Instance Method Summary collapse
-
#deal_damage(user, actual_targets)
Function that deals the damage to the pokemon.
-
#last_hit? ⇒ Boolean
Check if this the last hit of the move Don't call this method before deal_damage method call.
-
#multi_hit? ⇒ Boolean
Tells if the move hits multiple times.
Methods inherited from Basic
Instance Method Details
#deal_damage(user, actual_targets)
Function that deals the damage to the pokemon
1228 1229 |
# File 'docs/5_Battle_10_Move.rb', line 1228 def deal_damage(user, actual_targets) end |
#last_hit? ⇒ Boolean
Check if this the last hit of the move Don't call this method before deal_damage method call
1233 1234 |
# File 'docs/5_Battle_10_Move.rb', line 1233 def last_hit? end |
#multi_hit? ⇒ Boolean
Tells if the move hits multiple times
1237 1238 |
# File 'docs/5_Battle_10_Move.rb', line 1237 def multi_hit? end |