Skip to contents

Calculate the effect of the attack

Usage

use_attack(move, attacker, defender, battle, generation = 1L)

Arguments

move

Name of the move that the atttacker is using

attacker

The attacking Pokemon

defender

The defending Pokemon

battle

The PokemonBattle in place. Used to know

generation

The generation that the battle is happening in

Value

Nothing returned, however the attacker, defender and battle

are all updated to the effects of the move used.