Class: Battle::Move::TripleArrows
- Inherits:
-
BasicWithSuccessfulEffect
- Object
- Move
- Basic
- BasicWithSuccessfulEffect
- Battle::Move::TripleArrows
- Defined in:
- docs/5_Battle_10_Move.rb
Overview
Class managing Triple Arrows move (Gen 9) High critical hit ratio comes from the Studio critical_rate field. Status (flinch) and stats (Defense drop) are rolled independently.
Constant Summary collapse
- STATUS_CHANCE =
Probability of applying the flinch status (0-100)
30- STATS_CHANCE =
Probability of applying the Defense drop (0-100)
50
Instance Method Summary collapse
-
#deal_stats(user, actual_targets)
Function that deals the stat to the pokemon.
-
#deal_status(user, actual_targets)
Function that deals the status condition to the pokemon.
Methods inherited from BasicWithSuccessfulEffect
Methods inherited from Basic
#deal_damage, #effect_working?
Instance Method Details
#deal_stats(user, actual_targets)
Function that deals the stat to the pokemon
7405 7406 |
# File 'docs/5_Battle_10_Move.rb', line 7405 def deal_stats(user, actual_targets) end |
#deal_status(user, actual_targets)
Function that deals the status condition to the pokemon
7400 7401 |
# File 'docs/5_Battle_10_Move.rb', line 7400 def deal_status(user, actual_targets) end |