GEMP/Tech Doc/Effect Types
From LOTR-TCG Wiki
In the LotR-TCG, actions are made up of "activities", which manifest as either costs or effects.
The definitions for json hooks are located within /gemp-lotr-logic/src/main/java/com/gempukku/lotro/cards/build/field/EffectFieldProcessor.java
activated
Standard special abilities, usually indicated by bold text such as Skirmish:.
Parameters:
- phase
- Required.
- Array of one or more Phase strings
- condition
- Optional.
- Array of one or more Condition definitions.
- cost
- Optional, if effect is defined.
- Array of one or more Cost definitions.
- effect
- Optional, if cost is defined.
- Array of one or more Effect definitions.
- limitPerPhase
- Optional.
- Integer. Defaults to 0.
- Limits how many times per phase the action can be invoked.
- limitPerTurn
- Optional.
- Integer. Defaults to 0.
- Limits how many times per turn the action can be invoked.
- text
- Optional.
- String. Defaults to "".
- This is only used in situations where a card has multiple actions in the same phase (such as the Gollum, Dark as Darkness (9R+28) Shadow actions). The user will be prompted with a choice for each one to select, and the text here will be in the prompt.
"effects": {
"type": "activated",
"phase": ["fellowship"],
"condition": [
{
"type": "canSpot",
"filter": "elf",
"count": 1
}
],
"cost": [
{
"type": "exert",
"filter": "self"
}
],
"effect": [
{
"type": "heal",
"filter": "choose(culture(elven),ally)"
}
],
"limitPerPhase": 1,
"limitPerTurn": 2,
"text": "Spot an elf and exert this to heal an [elven] ally."
}