Class: Battle::Effects::Status::Poison

Inherits:
Status
  • Object
show all
Defined in:
docs/5_Battle_06_Effects_03_Status_Effects.rb

Overview

Class describing the Poison status effect

Instance Method Summary collapse

Instance Method Details

#name ⇒ Symbol

Function giving the name of the effect

Returns:

  • (Symbol)


80
81
# File 'docs/5_Battle_06_Effects_03_Status_Effects.rb', line 80

def name
end

#on_end_turn_event(logic, scene, battlers)

Apply poison effect on end of turn

Parameters:



76
77
# File 'docs/5_Battle_06_Effects_03_Status_Effects.rb', line 76

def on_end_turn_event(logic, scene, battlers)
end

#on_status_prevention(handler, status, target, launcher, skill) ⇒ :prevent?

Prevent poison from being applied twice

Parameters:

Returns:

  • (:prevent, nil) —

    :prevent if the status cannot be applied



70
71
# File 'docs/5_Battle_06_Effects_03_Status_Effects.rb', line 70

def on_status_prevention(handler, status, target, launcher, skill)
end