Unflagger

Unflagger

Clears a flag from the player when a matching color event is received.

Typical use: cure a status effect or reset a condition — e.g. remove the "poisoned" flag when the player drinks from a fountain that fires a color event.

Constructor

new Unflagger()

Source:

Extends

Classes

Unflagger

Methods

getProxiedTerrain()

Description:
  • Return the terrain being wrapped (TerrainProxy interface).

Source:
Overrides:

onColorEventInternal(event, color, _cell)

Description:
  • Removes Unflagger#flag from the player when the received color matches Unflagger#color. Skips silently when there is no player in the event.

Source:
Parameters:
Name Type Description
event GameEvent
color Color
_cell Cell

Unused.