Card
Functions for working with cards. This is also used as the metatable for Script tables, which in turn are used as the metatable for all card instances of that script. This means functions in this namespace can be used as "methods" of card objects, e.g. instead of Card.GetLevel(c)
, one can use c.GetLevel(c)
or c:GetLevel()
. It is recommended to use the colon syntax.
Functions
Card.AddCannotBeSpecialSummoned
- Adds a "Cannot be Special Summoned" Summoning condition to a monsterCard.AddCenterToSideEffectHandler
- Grants an effect to a Maximum Monster's [L] and [R] pieces.Card.AddCounter
- Places counters to a card.Card.AddDoubleTribute
- Allows using cards as double (or triple) tributes in Rush Duels.Card.AddMaximumAtkHandler
- Implements the Maximum ATK of a Maximum monster.Card.AddMonsterAttribute
- Transforms the provided card into a monster.Card.AddMonsterAttributeComplete
- Completes the transformation of a card into a monster.Card.AddMustBeFusionSummoned
- Adds a "Must be Fusion Summoned" Summoning condition to a monsterCard.AddMustBeLinkSummoned
- Adds a "Must be Link Summoned" Summoning condition to a monsterCard.AddMustBePendulumSummoned
- Adds a "Must be Pendulum Summoned" Summoning condition to a monsterCard.AddMustBeRitualSummoned
- Adds a "Must be Ritual Summoned" Summoning condition to a monsterCard.AddMustBeSpecialSummoned
- Adds a "Must be Special Summoned" Summoning condition to a monsterCard.AddMustBeSpecialSummonedByCardEffect
- Adds a "Must be Special Summoned by card effect" Summoning condition to a cardCard.AddMustBeSpecialSummonedByDarkFusion
- Adds a "Must be Special Summoned by Dark Fusion" Summoning condition to a cardCard.AddMustBeSynchroSummoned
- Adds a "Must be Synchro Summoned" Summoning condition to a monsterCard.AddMustBeXyzSummoned
- Adds a "Must be Xyz Summoned" Summoning condition to a monsterCard.AddMustFirstBeFusionSummoned
- Adds a "Must first be Fusion Summoned" Summoning condition to a monsterCard.AddMustFirstBeLinkSummoned
- Adds a "Must first be Link Summoned" Summoning condition to a monsterCard.AddMustFirstBePendulumSummoned
- Adds a "Must first be Pendulum Summoned" Summoning condition to a monsterCard.AddMustFirstBeRitualSummoned
- Adds a "Must first be Ritual Summoned" Summoning condition to a monsterCard.AddMustFirstBeSynchroSummoned
- Adds a "Must first be Synchro Summoned" Summoning condition to a monsterCard.AddMustFirstBeXyzSummoned
- Adds a "Must first be Xyz Summoned" Summoning condition to a monsterCard.AddSetcodesRule
- Adds any number of archetypes (setcodes) to a card.Card.Alias
- Returns a card's alias.Card.AnnounceAnotherAttribute
- Makes a player declare an attribute other than the ones a card currently has.Card.AnnounceAnotherRace
- Makes a player declare a race other than the ones a card currently has.Card.AssumeProperty
- Temporarily assumes a property for a card.Card.Attack
- Returns a card's original ATK.Card.Attribute
- Returns the card's original attribute(s).Card.CanAttack
- Checks if a card can declare an attack.Card.CanChainAttack
- Checks if a card can make a number of attacks in a row.Card.CanSummonOrSet
- Checks if a card can be Normal Summoned or Set.Card.CancelCardTarget
- Makes a card stop targeting another card.Card.CancelToGrave
- Changes the behavior of the rule that sends certain card types to the GY.Card.CheckEquipTarget
- Checks if a card can be equipped to another.Card.Code
- Returns a card's current passcode/ID.Card.CopyEffect
- Copy the effects of a card to another.Card.Defense
- Returns a card's original DEF.Card.EnableCounterPermit
- Allows a card to hold a counter that needs permissions.Card.GetActivateEffect
- Gets a card's activation effects.Card.GetAllCounters
- Gets all counters a card currently has.Card.GetAttack
- Gets the current ATK of a card.Card.GetAttribute
- Gets the current attribute(s) of a card.Card.GetBaseAttack
- Gets the original ATK of a card.Card.GetBaseDefense
- Gets the original DEF of a card.Card.GetBattlePosition
- Gets the battle position of a monster at the start of the Damage StepCard.GetCardEffect
- Gets all the effects being applied to a cardCard.GetCounter
- Gets the number of counters of a certain type a card has.Card.GetDefense
- Gets the current DEF of a card.Card.GetDestination
- Returns the location a card would be sent toCard.GetFieldID
- Gets a card's current location IDCard.GetLeaveFieldDest
- Gets a card's destination when it leaves the fieldCard.GetOwnEffects
- Gets all the effects registered or being granted to a cardCard.GetOwner
- Gets the owner of a cardCard.GetRealFieldID
- Gets a card's current location IDCard.GetTextAttack
- Gets the printed ATK of a card.Card.GetTextDefense
- Gets the printed DEF of a card.Card.HasCounter
- Checks if a card has a specified counterCard.HasDefense
- Checks if a card currently has a DEF value.Card.HasEquipCard
- Checks if a card has any number of equipped cardsCard.HasLevel
- Checks if a card has a levelCard.HasRank
- Checks if a card has a rankCard.IsBaseAttack
- Checks a card's original ATKCard.IsBaseDefense
- Checks a card's original DEFCard.IsBattlePosition
- Checks a card's battle position at the start of the Damage StepCard.IsContinuousSpell
- Checks if a card is currently a Continuous Spell.Card.IsContinuousSpellTrap
- Checks if a card is currently a Continuous Spell/Trap.Card.IsContinuousTrap
- Checks if a card is currently a Continuous Trap.Card.IsCounterTrap
- Checks if a card is currently a Counter Trap.Card.IsDestination
- Checks if a card would be sent to a given locationCard.IsEquipCard
- Checks if a card is currently a Equip Card.Card.IsEquipSpell
- Checks if a card is currently a Equip Spell.Card.IsFacedown
- Checks if a card is currently face-down.Card.IsFaceup
- Checks if a card is currently face-up.Card.IsFieldID
- Checks a card's current location IDCard.IsFieldSpell
- Checks if a card is currently a Field Spell.Card.IsFlipSummoned
- Checks if a card is currently Flip Summoned.Card.IsFusionSummoned
- Checks if a card is currently Fusion Summoned.Card.IsGeminiSummoned
- Checks if a card is currently Gemini Summoned.Card.IsHasEffect
- Gets all the effects of a given code being applied to a cardCard.IsLeaveFieldDest
- Checks if a card would be sent to a given location when it leaves the fieldCard.IsLevel
- Checks the level of a cardCard.IsLevelAbove
- Checks if the level of a card is greater than or equal to a given levelCard.IsLevelBelow
- Checks if the level of a card is less than or equal to a given levelCard.IsLevelBetween
- Checks if the level of a card is between two levelsCard.IsLinkMonster
- Checks if a card is currently a Link Monster.Card.IsLinkSpell
- Checks if a card is currently a Link Spell.Card.IsLinkSummoned
- Checks if a card is currently Link Summoned.Card.IsMonster
- Checks if a card is currently a monster.Card.IsMonsterCard
- Checks if a card is originally a Monster Card.Card.IsNonEffectMonster
- Checks if a card is a Non-Effect monsterCard.IsNormalSpell
- Checks if a card is currently a Normal Spell.Card.IsNormalSpellTrap
- Checks if a card is currently a Normal Spell/Trap.Card.IsNormalSummoned
- Checks if a card is currently Normal Summoned/Set.Card.IsNormalTrap
- Checks if a card is currently a Normal Trap.Card.IsNotTuner
- Checks if a card can be used for a Synchro Summon as a non-Tuner monsterCard.IsOnField
- Checks if a card is currently on the field.Card.IsOriginalLevel
- Checks a card's original levelCard.IsOriginalRank
- Checks a card's original rankCard.IsOwner
- Checks a card's ownerCard.IsPendulumSummoned
- Checks if a card is currently Pendulum Summoned.Card.IsPreviousAttackOnField
- Checks a card's previous ATKCard.IsPreviousAttributeOnField
- Checks a card's previous attributeCard.IsPreviousCodeOnField
- Checks a card's previous passcodeCard.IsPreviousDefenseOnField
- Checks a card's previous DEFCard.IsPreviousLevelOnField
- Checks a card's previous levelCard.IsPreviousRaceOnField
- Checks a card's previous raceCard.IsPreviousRankOnField
- Checks a card's previous rankCard.IsPreviousSequence
- Checks a card's previous sequenceCard.IsPreviousTypeOnField
- Checks a card's previous card typeCard.IsQuickPlaySpell
- Checks if a card is currently a Quick-Play Spell.Card.IsRealFieldID
- Checks a card's unique duel IDCard.IsReasonCard
- Checks if a card caused the event that happened to another card.Card.IsReasonEffect
- Checks if an effect caused the event that happened to cardCard.IsReasonPlayer
- Checks if a player caused the event that happened to cardCard.IsRitualMonster
- Checks if a card is currently a Ritual Monster.Card.IsRitualSpell
- Checks if a card is currently a Ritual Spell.Card.IsRitualSummoned
- Checks if a card is currently Ritual Summoned.Card.IsScale
- Checks a card's Pendulum ScaleCard.IsSpecialSummoned
- Checks if a card is currently Special Summoned.Card.IsSpell
- Checks if a card is currently a Spell.Card.IsSpellCard
- Checks if a card is originally a Spell Card.Card.IsSpellTrap
- Checks if a card is currently a Spell/Trap.Card.IsSpellTrapCard
- Checks if a card is originally a Spell/Trap Card.Card.IsSynchroSummoned
- Checks if a card is currently Synchro Summoned.Card.IsTextAttack
- Checks a card's original ATKCard.IsTextDefense
- Checks a card's original DEFCard.IsTrap
- Checks if a card is currently a Trap.Card.IsTrapCard
- Checks if a card is originally a Trap Card.Card.IsTrapMonster
- Checks if a card is a Trap MonsterCard.IsTributeSummoned
- Checks if a card is currently Tribute Summoned/Set.Card.IsType
- Checks a card's typeCard.IsXyzSummoned
- Checks if a card is currently Xyz Summoned.Card.Level
- Returns a card's original level, rank, or link-rating.Card.LinkMarker
- Returns the card's original link marker(s).Card.Lscale
- Returns a card's left Pendulum Scale.Card.Race
- Returns the card's original race(s).Card.Rscale
- Returns a card's right Pendulum Scale.Card.SetHint
- Sets a card hint to be displayed on a card when a player hovers it.Card.Setcode
- Returns the card's original archetype(s).Card.Type
- Returns a card's original type(s).