Card.IsControlerCanBeChanged
Signature
lua
Card.IsControlerCanBeChanged(Card c, [bool ignore_mzone], [int zone]) -> boolDescription
Checks whether control of c can currently move to the other player. The card must be in the Monster Zone and must not be affected by EFFECT_CANNOT_CHANGE_CONTROL. Unless ignore_mzone is true, the opponent must also have an available Monster Zone in zone.
Parameters
cCardignore_mzonebooloptional - default: falsezoneintoptional - default: 0xff
Returns
bool
Source
D:\Programs\GitHub\ygopro-core\libcard.cpp:3682
Guided Examples
Learn how to use this function in context:
Used By
Generated from the local Scripts/ folder and cards.cdb.
- Detected in 128 indexed script(s).
- Search this function in the Script Explorer with
Card.IsControlerCanBeChanged.
| Card | ID | Script | Detected Calls |
|---|---|---|---|
| Goyo Emperor | 59255742 | Scripts/c59255742.lua | 1 |
| Tellusion the Magna Warrior | 24431911 | Scripts/c24431911.lua | 1 |
| Enlilgirsu, the Orcust Mekk-Knight | 74820316 | Scripts/c74820316.lua | 1 |
| R.B. Lambda Blade | 17188206 | Scripts/c17188206.lua | 3 |
| Phara the Primordial Goddess | 82344137 | Scripts/c82344137.lua | 1 |
| Eternal Bond | 45283341 | Scripts/c45283341.lua | 1 |
| Possessed Destiny - Wynn | 60516416 | Scripts/c60516416.lua | 1 |
| Borreload Dragon | 31833038 | Scripts/c31833038.lua | 1 |
| Fabled Levilazebul | 21281085 | Scripts/c21281085.lua | 1 |
| Primite Howl | 41488249 | Scripts/c41488249.lua | 1 |
| Vanquish Soul Hollie Sue | 93156774 | Scripts/c93156774.lua | 2 |
| Distrust Paranoia | 81965543 | Scripts/c81965543.lua | 4 |
| Amaze Attraction Viking Vortex | 97182396 | Scripts/c97182396.lua | 1 |
| Hecahands Xeno | 94410955 | Scripts/c94410955.lua | 3 |
| Evil Lord - Zorc | 73320394 | Scripts/c73320394.lua | 2 |
| Chaotic Elements | 92221402 | Scripts/c92221402.lua | 3 |
| Number S38: Titanic Galaxy | 16110708 | Scripts/c16110708.lua | 1 |
| Predaplant Longinephila | 44994712 | Scripts/c44994712.lua | 1 |
| SPYRAL MISSION - Recapture | 39373426 | Scripts/c39373426.lua | 6 |
| Ancient Warriors Saga - Deception and Betrayal | 45115956 | Scripts/c45115956.lua | 1 |
| Time Thief Double Barrel | 91135480 | Scripts/c91135480.lua | 1 |
| Borreload Liberator Dragon | 27096833 | Scripts/c27096833.lua | 1 |
| Metaphys Horus | 36898537 | Scripts/c36898537.lua | 1 |
| Tragoedia | 98777036 | Scripts/c98777036.lua | 1 |
| ...and 104 more |
Script Examples
Goyo Emperor (59255742)
Source: Scripts/c59255742.lua
lua
end
function c59255742.filter(c,tp)
return c:IsSummonPlayer(1-tp) and c:IsControlerCanBeChanged(true)
end
function c59255742.target(e,tp,eg,ep,ev,re,r,rp,chk)Tellusion the Magna Warrior (24431911)
Source: Scripts/c24431911.lua
lua
local tc=Duel.GetFirstTarget()
if tc:IsRelateToChain() and tc:IsLocation(LOCATION_MZONE) then
if e:GetLabel()==1 and tc:IsControlerCanBeChanged()
and Duel.SelectYesNo(tp,aux.Stringid(id,3)) then
Duel.GetControl(tc,tp)Enlilgirsu, the Orcust Mekk-Knight (74820316)
Source: Scripts/c74820316.lua
lua
end
function s.gcfilter2(c)
return c:IsFaceup() and c:IsControlerCanBeChanged()
end
function s.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)