Class: Battle::Effects::Status::Frozen

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

Overview

Class describing the Frozen status effect

Instance Method Summary collapse

Instance Method Details

#name ⇒ Symbol

Function giving the name of the effect

Returns:

  • (Symbol)


220
221
# File 'docs/5_Battle_06_Effects_03_Status_Effects.rb', line 220

def name
end

#on_move_prevention_user(user, targets, move) ⇒ :prevent?

Function called when we try to use a move as the user (returns :prevent if user fails)

Parameters:

Returns:

  • (:prevent, nil) —

    :prevent if the move cannot continue



216
217
# File 'docs/5_Battle_06_Effects_03_Status_Effects.rb', line 216

def on_move_prevention_user(user, targets, move)
end

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

Prevent freeze from being applied twice

Parameters:

Returns:

  • (:prevent, nil) —

    :prevent if the status cannot be applied



209
210
# File 'docs/5_Battle_06_Effects_03_Status_Effects.rb', line 209

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