Class: Oakdex::Pokemon::GrowthEvents::RemoveStatusCondition

Inherits:
Base
  • Object
show all
Defined in:
lib/oakdex/pokemon/growth_events/remove_status_condition.rb

Overview

When pokemon gets status condition healed

Instance Method Summary collapse

Methods inherited from Base

#initialize, #possible_actions, #read_only?, #to_h

Constructor Details

This class inherits a constructor from Oakdex::Pokemon::GrowthEvents::Base

Instance Method Details

#executeObject



11
12
13
14
# File 'lib/oakdex/pokemon/growth_events/remove_status_condition.rb', line 11

def execute
  @pokemon.primary_status_condition = nil
  remove_event
end

#messageObject



7
8
9
# File 'lib/oakdex/pokemon/growth_events/remove_status_condition.rb', line 7

def message
  "#{@pokemon.name} heals #{@pokemon.primary_status_condition}."
end