MTG() functions (DotP 2012)
AIMay
AddBadge
Target cards with specified badges equipped.
AddCardName
Target cards with specified name.
AddCardType
Target cards with specified type (creature, land, instant, etc).
AddColour
Target cards with specified colour.
AddExtra
AddSecondCardType
Target cards with a second specified type (presumably stuff like tribal).
AddSubType
Target cards with specified subtype (forest, mountain, kithkin, etc).
AddSupertype
Target cards with specified supertype (basic, legendary, etc).
Clear
Clear the filter.
Count
Returns the number of matching filtered items at the moment it is called.
CountStopAt
Short-circuit the filter. A more effecient way of, for example, counting the number of lands in play versus Count.
May
If a query is to be issued against the filter for target determination, the May keyword allows the user to cancel without selecting a target.
NotTargetted
PlayerAntiHint
Possibly? allows specification of a player who should not be considered for targetting. Possibly overridden by disabling simplified targetting in the game options.
PlayerHint
Possibly? allows specification of a player who should be considered for targetting. Possibly overridden by disabling simplified targetting in the game options.
SetCardInstance
SetController
Target cards under the play of a specified player.
SetControllersTeam
Target cards under the play of a specified team.
SetConvertedCostMax
Target with a converted mana cost less than the argument.
SetConvertedCostValue
Target with a converted mana cost equal to the argument.
SetFilterType
SetNeutral
Possibly? signals that the filter can be used to designate targets for either beneficial or detrimental purposes and should not be affected by the simplified targetting setting in the game options.
SetOwner
Target cards owned by a specified player, regardless of current controller.
SetPlayer
Target cards under the play of a specified player.
SetPlayerInstance
SetPortion
Limits the search to the first X cards, where X is the argument. Useful for checking the top X cards of library, for example.
SetPowerMax
Target cards with power equal or less to the specified amount.
SetPowerMin
Target cards with power equal or greater to the specified amount.
SetReversePortion
Limits the search to the first X cards, where X is the argument. Useful for checking the bottom X cards of library, for example.
SetStackObjectType
SetSubTypes
Target cards with a specified subtype (forest, mountain, kithkin, etc). How does this differ from AddSubType?
SetUnique
SetZone
Target cards in a specified zone (in play, graveyard, hand, etc)
