diff --git a/Server/src/SOR.Admin/Components/Pages/Cards/AbilityBuilder.razor b/Server/src/SOR.Admin/Components/Pages/Cards/AbilityBuilder.razor index 485436c..9abd4dd 100644 --- a/Server/src/SOR.Admin/Components/Pages/Cards/AbilityBuilder.razor +++ b/Server/src/SOR.Admin/Components/Pages/Cards/AbilityBuilder.razor @@ -323,7 +323,7 @@
| Type | When it fires | Key fields |
|---|---|---|
| Active | Player explicitly activates on their turn | Range, Cost, UsesPerTurn |
| Passive | Always in effect while unit is on battlefield | Actions (target=Self) |
| Aura | Continuously affects all units in range | AuraRange, Actions |
| Triggered | Fires automatically when a specific game event occurs | TriggerEvent, Actions |
Scope defines the zone searched for targets.
+| Scope | Zone searched |
|---|---|
| Battlefield | Units currently on the board |
| Hand | Cards in a player's hand |
| Deck | Cards in a player's deck |
| Discard | Cards in a player's discard pile |
| Player | A player entity (for player-targeting effects like ModifySP) |
| AnyZone | All zones simultaneously |
Ownership narrows the candidate pool and determines whether the player is prompted to pick.
+| Ownership | Meaning | Player prompted? |
|---|---|---|
| Self | Any unit owned by the same controller as the ability source | No (auto) |
| ExactSelf | The exact unit instance that owns this ability | No (auto) |
| Owner | Entities belonging to the ability owner | Yes (if Count>1 or All) |
| Ally | Friendly units other than self | Yes |
| Enemy | Opponent's units | Yes |
| Any | Any entity in the zone regardless of controller | Yes |
| Random | Engine picks a random valid target; player is not prompted | No (auto) |
| Target | Re-uses the resolved target from the previous action | No (chained) |
| Filter | Meaning |
|---|---|
| IsSelf | Target shares the same card definition as the source (matches all copies of this card type on the board) |
| IsExactSelf | Target is the exact unit instance that owns this ability (use when only this specific unit should be affected) |
| IsAdjacentToSource | Target must be orthogonally adjacent to the ability's source unit |
In any Amt field you can choose a dynamic reference instead of a fixed number. The engine resolves the reference at the moment the effect fires.
+| Reference | Resolves to | When available |
|---|---|---|
EventData.Amount | Numeric payload from the trigger event (e.g. damage dealt) | Triggered abilities only |
Target.Damage | Current damage stat of this action's first resolved target | Always |
Target.Defense | Current defense stat of the target | Always |
Target.Health | Current HP of the target | Always |
Target.MP | Current MP of the target | Always |
Target.SpCost | SP channel cost of the target card | Always |
Target.StCost | ST channel cost of the target card | Always |
Self.Damage | Damage stat of the ability's source unit | Always |
Self.Defense | Defense stat of the source unit | Always |
Self.Health | Current HP of the source unit | Always |
Self.MP | Current MP of the source unit | Always |
Self.SpCost | SP cost of the source card | Always |
Self.StCost | ST cost of the source card | Always |
Action0.Target.* | Stat of the first target resolved in Action 1 | Actions 2+ only |
Action1.Target.* | Stat of the first target resolved in Action 2 | Actions 3+ only |
"Return a target Spirit to its owner's hand and refund its SP cost."
+Action0.Target.SpCostAction 2 uses Ownership: Target to re-target the owner of the card selected in Action 1. The Amt dropdown will show Action0.Target.* options once Action 2 exists.
| Duration | When the effect expires |
|---|---|
| Instant | Applied once, never removed (stat changes etc.) |
| UntilEndOfTurn | Expires at end of the active player's turn |
| UntilStartOfOwnerTurn | Expires at start of the ability owner's next turn |
| UntilStartOfSourceOwnerTurn | Expires at start of the source unit owner's next turn |
| ForNTurns | Expires after N complete turns have elapsed |
| WhileSourceOnBattlefield | Expires when the source unit leaves the battlefield |
| PermanentInMatch | Never expires for the rest of this game |
Conditions can be added to Ability-level (ActivationConditions) or Action-level. All must pass for the ability/action to fire. The Subject dropdown selects whose state is checked: Self = ability source, Target = the resolved target.
| Condition | Passes when… |
|---|---|
| IsOwnTurn / IsOpponentTurn | It is (or isn't) the owner's turn |
| HealthBelow / HealthAbove N | Subject's current HP < N or > N |
| DefenseIs / SPAtLeast / STAtLeast | Stat comparisons |
| HasGenus / HasAbility | Subject has a genus tag / named ability |
| IsOnTileWithAffinity | Subject's tile matches the specified affinity |
| IsAdjacentTo | Subject is adjacent to a unit matching Ownership |
| WithinRangeOf | Subject is within N tiles of a unit matching Ownership |
| UnitCountOnBattlefield | Total matching units on board satisfies comparator |
| CardInZone | A matching card exists in the specified zone |
| AND / OR / XOR | Composite — combines nested conditions |
Available for Triggered abilities. The engine fires the ability whenever the event occurs and all ActivationConditions pass.
+@t