Skip to main content

Module replace_add_counter

Module replace_add_counter 

Source
Expand description

Replacement logic for Event$ AddCounter.

Mirrors Java ReplaceAddCounter.java in forge/game/replacement/.

Functions§

can_replace
Mirrors Java ReplaceAddCounter.canReplace().
execute
Mirrors Java ReplacementHandler.executeReplacement() for AddCounter.
has_any_in_counter_map
Check if the effect has a ValidCounterType$ that matches the given counter type.
mode_check
Check if this effect’s event type matches the given event for AddCounter purposes.