Card.IsCanTurnSet
Signature
lua
Card.IsCanTurnSet(Card c) -> boolDescription
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
cCard- 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.
| Card | ID | Script | Detected Calls |
|---|---|---|---|
| Salamandra with Chain | 62091148 | Scripts/c62091148.lua | 1 |
| Regenesis Birth | 27781371 | Scripts/c27781371.lua | 1 |
| Chaos Magical Hats | 2372506 | Scripts/c2372506.lua | 1 |
| Magical Hats | 81210420 | Scripts/c81210420.lua | 1 |
| Enneacraft - Atori.MAR | 54842941 | Scripts/c54842941.lua | 1 |
| Scrap-Iron Sacred Statue | 85520170 | Scripts/c85520170.lua | 1 |
| First Penguin | 12975671 | Scripts/c12975671.lua | 1 |
| King's Resonance | 17269895 | Scripts/c17269895.lua | 1 |
| Clown Crew Flair | 42759961 | Scripts/c42759961.lua | 1 |
| Zenet-Nakhte Sphinx | 47095439 | Scripts/c47095439.lua | 1 |
| Destined Duel | 48128081 | Scripts/c48128081.lua | 1 |
| Abyss of the Sacred Beasts | 86132414 | Scripts/c86132414.lua | 1 |
| Subterror Behemoth Burrowing | 28369508 | Scripts/c28369508.lua | 1 |
| Subterror Final Battle | 74640994 | Scripts/c74640994.lua | 2 |
| Ultimate Conductor Tyranno | 18940556 | Scripts/c18940556.lua | 1 |
| Tri-Brigade Arms Mouser | 33781156 | Scripts/c33781156.lua | 1 |
| Enneacraft Reset | 19504025 | Scripts/c19504025.lua | 1 |
| Dreaming Reality of Nemleria, Realized | 16893370 | Scripts/c16893370.lua | 1 |
| Lavalval Salamander | 67797569 | Scripts/c67797569.lua | 1 |
| The Executor of the Underworld - Pluto | 37706769 | Scripts/c37706769.lua | 1 |
| Centaur Mina | 33129626 | Scripts/c33129626.lua | 1 |
| Ghostrick or Treat | 27170599 | Scripts/c27170599.lua | 2 |
| Amaze Attraction Horror House | 92650018 | Scripts/c92650018.lua | 1 |
| Ninjitsu Art Notebook of Mystery | 95545183 | Scripts/c95545183.lua | 1 |
| ...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)