Skip to content

Card.IsCanTurnSet ​

Signature ​

lua
Card.IsCanTurnSet(Card c) -> bool

Description ​

Checks whether c can be turned face-down by the current reason player. The core returns false for Link Monsters, Tokens, already face-down cards, and cards or players affected by EFFECT_CANNOT_TURN_SET.

Parameters ​

  • c Card - Card checked for whether it can be turned face-down.

Returns ​

  • bool - True if c can be turned face-down by the current reason player.

Source ​

  • D:\Programs\GitHub\ygopro-core\libcard.cpp:3689

Guided Examples ​

Learn how to use this function in context:

Used By ​

Generated from the local Scripts/ folder and cards.cdb.

  • Detected in 177 indexed script(s).
  • Search this function in the Script Explorer with Card.IsCanTurnSet.
CardIDScriptDetected Calls
Salamandra with Chain62091148Scripts/c62091148.lua1
Regenesis Birth27781371Scripts/c27781371.lua1
Chaos Magical Hats2372506Scripts/c2372506.lua1
Magical Hats81210420Scripts/c81210420.lua1
Enneacraft - Atori.MAR54842941Scripts/c54842941.lua1
Scrap-Iron Sacred Statue85520170Scripts/c85520170.lua1
First Penguin12975671Scripts/c12975671.lua1
King's Resonance17269895Scripts/c17269895.lua1
Clown Crew Flair42759961Scripts/c42759961.lua1
Zenet-Nakhte Sphinx47095439Scripts/c47095439.lua1
Destined Duel48128081Scripts/c48128081.lua1
Abyss of the Sacred Beasts86132414Scripts/c86132414.lua1
Subterror Behemoth Burrowing28369508Scripts/c28369508.lua1
Subterror Final Battle74640994Scripts/c74640994.lua2
Ultimate Conductor Tyranno18940556Scripts/c18940556.lua1
Tri-Brigade Arms Mouser33781156Scripts/c33781156.lua1
Enneacraft Reset19504025Scripts/c19504025.lua1
Dreaming Reality of Nemleria, Realized16893370Scripts/c16893370.lua1
Lavalval Salamander67797569Scripts/c67797569.lua1
The Executor of the Underworld - Pluto37706769Scripts/c37706769.lua1
Centaur Mina33129626Scripts/c33129626.lua1
Ghostrick or Treat27170599Scripts/c27170599.lua2
Amaze Attraction Horror House92650018Scripts/c92650018.lua1
Ninjitsu Art Notebook of Mystery95545183Scripts/c95545183.lua1
...and 153 more

Script Examples ​

Salamandra with Chain (62091148) ​

Source: Scripts/c62091148.lua

lua
end
function s.posfilter(c)
	return c:IsType(TYPE_EFFECT) and c:IsFaceup() and c:IsCanTurnSet()
end
function s.operation(e,tp,eg,ep,ev,re,r,rp)

Regenesis Birth (27781371) ​

Source: Scripts/c27781371.lua

lua
end
function s.posfilter(c)
	return c:IsFaceup() and c:IsCanTurnSet()
end
function s.postg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)

Chaos Magical Hats (2372506) ​

Source: Scripts/c2372506.lua

lua
end
function s.filter(c)
	return aux.IsCodeListed(c,33599853) and c:GetSequence()<5 and c:IsCanTurnSet()
end
function s.spfilter(c,e,tp)