class Oakdex::Battle::StatusConditions::Paralysis
Represents Paralysis
status condition
Public Instance Methods
prevents_move?(move_execution)
click to toggle source
# File lib/oakdex/battle/status_conditions/paralysis.rb, line 11 def prevents_move?(move_execution) if rand(1..100) <= 25 move_execution .battle .add_to_log('paralysed', move_execution.pokemon.trainer.name, move_execution.pokemon.name) true else false end end
stat_modifier(stat)
click to toggle source
Calls superclass method
Oakdex::Battle::StatusConditions::Base#stat_modifier
# File lib/oakdex/battle/status_conditions/paralysis.rb, line 6 def stat_modifier(stat) return 0.5 if stat == :speed super end