docs(ability): add trigger source-zone support (hand/discard/deck)

This commit is contained in:
Shard
2026-04-16 15:53:05 +00:00
parent 5ec62b9d42
commit d147a3a469
+7
View File
@@ -286,6 +286,12 @@ Builder help has no warning/pattern guidance for safe Ruin trigger authoring.
- N per turn
- N per game
- Include dedicated support for aura range boundary events (`OnEnterAuraRange`, `OnLeaveAuraRange`).
- **Trigger source-zone support**: triggers must be authorable to function while source card is in:
- `Battlefield`
- `Hand`
- `Discard`
- `Deck`
(with explicit zone gating in trigger definition).
### Conditions and logic system direction
- Use a reusable expression/group model for:
@@ -443,6 +449,7 @@ Use for:
- `actor` (who caused event)
- `subject` (primary unit/card/tile/player affected)
- `source` (ability/card/effect source)
- `sourceZone` (`Battlefield | Hand | Discard | Deck`)
- `amount?` (numeric payload for spend/damage/heal/etc.)
- `context` (event-specific extras, e.g., occupant, causedBy, stat, affinity)
- `turnIndex`