Skip to content

Card.IsControlerCanBeChanged ​

Signature ​

lua
Card.IsControlerCanBeChanged(Card c, [bool ignore_mzone], [int zone]) -> bool

Description ​

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 ​

  • c Card
  • ignore_mzone bool optional - default: false
  • zone int optional - 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.
CardIDScriptDetected Calls
Goyo Emperor59255742Scripts/c59255742.lua1
Tellusion the Magna Warrior24431911Scripts/c24431911.lua1
Enlilgirsu, the Orcust Mekk-Knight74820316Scripts/c74820316.lua1
R.B. Lambda Blade17188206Scripts/c17188206.lua3
Phara the Primordial Goddess82344137Scripts/c82344137.lua1
Eternal Bond45283341Scripts/c45283341.lua1
Possessed Destiny - Wynn60516416Scripts/c60516416.lua1
Borreload Dragon31833038Scripts/c31833038.lua1
Fabled Levilazebul21281085Scripts/c21281085.lua1
Primite Howl41488249Scripts/c41488249.lua1
Vanquish Soul Hollie Sue93156774Scripts/c93156774.lua2
Distrust Paranoia81965543Scripts/c81965543.lua4
Amaze Attraction Viking Vortex97182396Scripts/c97182396.lua1
Hecahands Xeno94410955Scripts/c94410955.lua3
Evil Lord - Zorc73320394Scripts/c73320394.lua2
Chaotic Elements92221402Scripts/c92221402.lua3
Number S38: Titanic Galaxy16110708Scripts/c16110708.lua1
Predaplant Longinephila44994712Scripts/c44994712.lua1
SPYRAL MISSION - Recapture39373426Scripts/c39373426.lua6
Ancient Warriors Saga - Deception and Betrayal45115956Scripts/c45115956.lua1
Time Thief Double Barrel91135480Scripts/c91135480.lua1
Borreload Liberator Dragon27096833Scripts/c27096833.lua1
Metaphys Horus36898537Scripts/c36898537.lua1
Tragoedia98777036Scripts/c98777036.lua1
...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)