Skip to content

Card.IsCanChangePosition ​

Signature ​

lua
Card.IsCanChangePosition(Card c) -> bool

Description ​

Checks the core's effect-specific position-change capability for c. In this MDPro4/YGOPro core, that helper returns false for Link Monsters and true for other cards; it does not perform the broader manual battle-position-change checks.

Parameters ​

  • c Card

Returns ​

  • bool

Source ​

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

Guided Examples ​

Learn how to use this function in context:

Used By ​

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

  • Detected in 156 indexed script(s).
  • Search this function in the Script Explorer with Card.IsCanChangePosition.
CardIDScriptDetected Calls
Power Tool Braver Dragon63265554Scripts/c63265554.lua1
Mimighoul Maker13204145Scripts/c13204145.lua2
Amaze Attraction Thrill Train36591747Scripts/c36591747.lua1
Performapal Corn33103459Scripts/c33103459.lua1
Arbitration of White57964143Scripts/c57964143.lua1
VARefar, the Judge of Ball19743887Scripts/c19743887.lua1
Poissonniere de Nouvelles46485778Scripts/c46485778.lua3
Epurrely Beauty98049934Scripts/c98049934.lua2
Ritual Beast Inheritance22501005Scripts/c22501005.lua1
Goblin Freefall Squad85123771Scripts/c85123771.lua1
Lancea, Ancestral Dragon of the Ice Mountain96402918Scripts/c96402918.lua1
Unchained Malevolent Magistrate Kamura68625623Scripts/c68625623.lua2
Cyberse Enchanter60279710Scripts/c60279710.lua3
Borrelguard Dragon68987122Scripts/c68987122.lua1
Artmage Diactorus27184601Scripts/c27184601.lua1
Vanquish Soul Jiaolong9091064Scripts/c9091064.lua2
Amaze Attraction Rapid Racing55262310Scripts/c55262310.lua2
Gagaga Escape9591819Scripts/c9591819.lua1
Doll Hammer44088353Scripts/c44088353.lua2
The Phantom Knights of Umbrage Veil85257384Scripts/c85257384.lua1
Number 3: Cicada King4997565Scripts/c4997565.lua1
Digital Bug Scaradiator12615446Scripts/c12615446.lua3
Riot's Reason51612489Scripts/c51612489.lua2
Magikey Beast - Ansyalabolas45655875Scripts/c45655875.lua1
...and 132 more

Script Examples ​

Power Tool Braver Dragon (63265554) ​

Source: Scripts/c63265554.lua

lua
	local tc=Duel.GetFirstTarget()
	if not tc:IsRelateToEffect(e) then return end
	local b1=tc:IsCanChangePosition()
	local b2=aux.NegateMonsterFilter(tc)
	local op=-1

Mimighoul Maker (13204145) ​

Source: Scripts/c13204145.lua

lua
	local tc=Duel.GetFirstTarget()
	if tc:IsRelateToEffect(e) and tc:IsType(TYPE_MONSTER) then
		if tc:IsPosition(POS_FACEUP_ATTACK) and tc:IsCanChangePosition() then
			Duel.ChangePosition(tc,POS_FACEUP_DEFENCE)
		elseif tc:IsPosition(POS_FACEUP_DEFENCE) and tc:IsCanChangePosition() then

Amaze Attraction Thrill Train (36591747) ​

Source: Scripts/c36591747.lua

lua
function c36591747.sttg(e,tp,eg,ep,ev,re,r,rp,chk)
	local ec=e:GetHandler():GetEquipTarget()
	if chk==0 then return ec and ec:IsCanChangePosition()
		and Duel.IsExistingMatchingCard(c36591747.stfilter,tp,LOCATION_GRAVE,0,1,nil) end
	Duel.SetOperationInfo(0,CATEGORY_POSITION,ec,1,0,0)