Class: Battle::Effects::Ability::Commander

Inherits:
Ability
  • Object
show all
Defined in:
docs/5_Battle_06_Effects_04_Ability_Effects.rb

Overview

Class describing the Commander ability effect

Constant Summary collapse

COMMANDERS =

List of commanders and their attributes

Returns:

  • (Hash{Symbol => Hash})
{tatsugiri: {stats: {atk: 2, dfe: 2, ats: 2, dfs: 2, spd: 2}, ally: :dondozo}}

Instance Method Summary collapse

Instance Method Details

#on_switch_event(handler, who, with)

Function called when a Pokemon has actually switched with another one

Parameters:



810
811
# File 'docs/5_Battle_06_Effects_04_Ability_Effects.rb', line 810

def on_switch_event(handler, who, with)
end