tuxemon.event.conditions.monster_flair module

class tuxemon.event.conditions.monster_flair.MonsterFlairCondition[source]

Bases: EventCondition

Check to see if the given monster flair matches the expected value.

Script usage

is monster_flair <slot>,<category>,<name>
Script parameters:
  • slot – Position of the monster in the player monster list.

  • category – Category of the flair.

  • name – Name of the flair.

name: ClassVar[str] = 'monster_flair'
test(session, condition)[source]

Check to see if the given monster flair matches the expected value.

Parameters:
  • session (Session) – The session object

  • condition (MapCondition) – The map condition object.

Returns:

Whether the monster flair matches the expected value.

Return type:

bool