Card.CancelToGrave
Signature
lua
Card.CancelToGrave(Card c, [bool cancel]) -> voidDescription
Cancels the confirmed-to-Graveyard state for c. If cancel is false, sets that state again. This state is used for non-continuous Spell/Trap Cards activated on the field before they leave the field; while set, they cannot return to the hand or Deck and are sent to the Graveyard when the Chain ends. Use this helper to keep such cards on the field, as with Swords of Revealing Light or Scrap-Iron Scarecrow.
Parameters
cCardcancelbooloptional - default: true
Source
D:\Programs\GitHub\ygopro-core\libcard.cpp:3706
Guided Examples
Learn how to use this function in context:
Used By
Generated from the local Scripts/ folder and cards.cdb.
- Detected in 115 indexed script(s).
- Search this function in the Script Explorer with
Card.CancelToGrave.
| Card | ID | Script | Detected Calls |
|---|---|---|---|
| Salamandra with Chain | 62091148 | Scripts/c62091148.lua | 2 |
| Converging Wishes | 20007374 | Scripts/c20007374.lua | 2 |
| Graydle Split | 75361204 | Scripts/c75361204.lua | 2 |
| Number 38: Hope Harbinger Dragon Titanic Galaxy | 63767246 | Scripts/c63767246.lua | 1 |
| Amaze Attraction Wonder Wheel | 93473606 | Scripts/c93473606.lua | 2 |
| Max Metalmorph | 89812483 | Scripts/c89812483.lua | 2 |
| The Phantom Knights' Rank-Up-Magic Launch | 3298689 | Scripts/c3298689.lua | 1 |
| Amaze Attraction Thrill Train | 36591747 | Scripts/c36591747.lua | 2 |
| Scrap-Iron Sacred Statue | 85520170 | Scripts/c85520170.lua | 1 |
| Red Cocoon | 2542230 | Scripts/c2542230.lua | 2 |
| Mirror Barrier | 95915457 | Scripts/c95915457.lua | 2 |
| Hyper-Rank-Up-Magic Ultimate Force | 87818869 | Scripts/c87818869.lua | 1 |
| Shichi-Go-San | 11035075 | Scripts/c11035075.lua | 2 |
| Gergonne's End | 59490397 | Scripts/c59490397.lua | 2 |
| Malefic Force | 68721020 | Scripts/c68721020.lua | 2 |
| The Glitter of Raise Moon | 9362643 | Scripts/c9362643.lua | 1 |
| Limit Code | 86607583 | Scripts/c86607583.lua | 2 |
| Goblin's Crazy Beast | 71100270 | Scripts/c71100270.lua | 1 |
| Amaze Attraction Cyclo-Coaster | 66984907 | Scripts/c66984907.lua | 2 |
| DoomZ Destruction | 80320877 | Scripts/c80320877.lua | 2 |
| Epurrely Beauty | 98049934 | Scripts/c98049934.lua | 1 |
| Laevatein, Generaider Boss of Shadows | 74615388 | Scripts/c74615388.lua | 1 |
| Assault Spirits | 87043568 | Scripts/c87043568.lua | 2 |
| Goblin Biker Grand Pileup | 90946420 | Scripts/c90946420.lua | 1 |
| ...and 91 more |
Script Examples
Salamandra with Chain (62091148)
Source: Scripts/c62091148.lua
lua
if cid~=e:GetLabel() then return end
if e:GetOwner():IsRelateToChain(ev) then
e:GetOwner():CancelToGrave(false)
end
endConverging Wishes (20007374)
Source: Scripts/c20007374.lua
lua
if cid~=e:GetLabel() then return end
if e:GetOwner():IsRelateToChain(ev) then
e:GetOwner():CancelToGrave(false)
end
endGraydle Split (75361204)
Source: Scripts/c75361204.lua
lua
if cid~=e:GetLabel() then return end
if e:GetOwner():IsRelateToChain(ev) then
e:GetOwner():CancelToGrave(false)
end
end