You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/Card-scripting-API/AbilityFactory.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -28,19 +28,19 @@ Syntax definitions like the above will use different symbols to separate the var
28
28
29
29
Secondary abilities such as the DB executed by triggers or replacements (usually) don't need costs. (This is one reason to use DB over AB in these cases.)
30
30
31
-
Read more about it in [Costs](Costs)
31
+
Read more about it in [Costs](Costs.md)
32
32
33
33
## Defined / ValidTgts
34
34
Most effects need to know (at least implicitly) which players or objects they're trying to affect. There are two different ways for that:
35
35
-`Defined$ {Defined}` if the ability describes on what it's applied
36
36
-`ValidTgts$ {Valid}` for abilities that target
37
37
38
-
Read more about it in [Affected / Targets](Targeting)
38
+
Read more about it in [Affected / Targets](Targeting.md)
39
39
40
40
## Restrictions / Conditions
41
41
Restrictions limit when abilities can be put on the stack and Conditions apply during resolving. Typical examples are "Activate only once each turn" or "If this spell’s additional cost was paid, [...]".
42
42
43
-
Read more about it in [Restriction](Restrictions)
43
+
Read more about it in [Restriction](Restrictions.md)
44
44
45
45
## SpellDescription
46
46
`SpellDescription$ {String}` is how the text of the ability will display on the card and in the option dialog for cards with multiple abilities.
|`AI`|`RemoveDeck:`<br />*`All`<br />This will prevent the card from appearing in random AI decks. It is applicable for cards the AI can't use at all and also for cards that the AI could use, but only ineffectively. The AI won't draft these cards.<br />*`Random`<br /> This will prevent the card from appearing in random decks. It is only applicable for cards that are too narrow for random decks like *Root Cage* or *Into the North*. The AI won't draft these cards.<br />*`NonCommander`<br />
28
28
|`Colors`|Color(s) of the card<br /><br />When a card's color is determined by a color indicator rather than shards in a mana cost, this property must be defined. If no identifier is needed, this property should be omitted.<br /><br />Example:<br />`Colors:red,green` - Since *Arlinn, Embraced by the Moon* has no mana cost (it's the back of a double-faced card), the red and green indicator must be included.
29
29
|`DeckHints`|AI-related hints for a deck including this card<br /><br />To improve synergy this will increase the rank of of all other cards that share some of its DeckHints types. The following types are supported:<br />* Color<br />* Keyword<br />* Name<br />* Type<br /><br />This helps with smoothing the selection so cards without these Entries won't be at an unfair disadvantage.<br /><br />The relevant code can be found in the [CardRanker](https://github.com/Card-Forge/forge/blob/master/forge-gui/src/main/java/forge/gamemodes/limited/CardRanker.java) class.
@@ -35,10 +35,10 @@ There are a few other properties that will appear in many cards. These are
35
35
|`Name`|Name of the card<br /><br />A string of text that serves as the name of the card. Note that the registered trademark symbol cannot be included, and this property must have at least one character.
36
36
|`Oracle`|The current Oracle text used by the card.<br /><br />We actually have a Python Script that runs to be able to fill in this information, so don't worry about manually editing a lot of cards when Wizards decides to change the rules. <br /><br />This field is used by the Deck Editor to allow non-Legendary Creatures to be marked as potential commanders. Make sure "CARDNAME can be your commander." appears in the oracle text.
|`Text`|Additional text that needs to be displayed on the CardDetailPanel that doesn't have any spell/ability that generates a description for it, e.g. "CARDNAME can be your commander." or "X can't be 0.".
43
43
|`Types`|Card types and subtypes<br /><br />Include all card types and subtypes, separated by spaces.<br /><br />Example:<br />`Types:Enchantment Artifact Creature Golem` for a card that reads "Enchantment Artifact Creature -- Golem"
0 commit comments