Skip to contents

Finding out whether the type of the moved used matches the attacking Pokémon type. If so then a multiplier of 1.5 is given, otherwise it is 1.

Usage

include_stab_multiplier(move_type, pokemon_types)

Arguments

move_type

The ID of type of the move used

pokemon_types

A vector of the IDs of types of the attacking Pokémon