Class: Oakdex::Battle::StatusConditions::NonVolatile

Inherits:
Base
  • Object
show all
Defined in:
lib/oakdex/battle/status_conditions/non_volatile.rb

Overview

Represents Abstract Class Base NonVolatile

Direct Known Subclasses

BadlyPoisoned, Burn, Freeze, Paralysis, Poison, Sleep

Instance Attribute Summary

Attributes inherited from Base

#pokemon

Instance Method Summary collapse

Methods inherited from Base

#after_received_damage, #after_switched_out, #after_turn, #before_turn, #damage_modifier, #initialize, #prevents_move?, #stat_modifier

Constructor Details

This class inherits a constructor from Oakdex::Battle::StatusConditions::Base

Instance Method Details

#after_fainted(_battle) ⇒ Object



6
7
8
# File 'lib/oakdex/battle/status_conditions/non_volatile.rb', line 6

def after_fainted(_battle)
  pokemon.remove_status_condition(self)
end