Card.IsCanChangePosition
Signature
lua
Card.IsCanChangePosition(Card c) -> boolDescription
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
cCard
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.
| Card | ID | Script | Detected Calls |
|---|---|---|---|
| Power Tool Braver Dragon | 63265554 | Scripts/c63265554.lua | 1 |
| Mimighoul Maker | 13204145 | Scripts/c13204145.lua | 2 |
| Amaze Attraction Thrill Train | 36591747 | Scripts/c36591747.lua | 1 |
| Performapal Corn | 33103459 | Scripts/c33103459.lua | 1 |
| Arbitration of White | 57964143 | Scripts/c57964143.lua | 1 |
| VARefar, the Judge of Ball | 19743887 | Scripts/c19743887.lua | 1 |
| Poissonniere de Nouvelles | 46485778 | Scripts/c46485778.lua | 3 |
| Epurrely Beauty | 98049934 | Scripts/c98049934.lua | 2 |
| Ritual Beast Inheritance | 22501005 | Scripts/c22501005.lua | 1 |
| Goblin Freefall Squad | 85123771 | Scripts/c85123771.lua | 1 |
| Lancea, Ancestral Dragon of the Ice Mountain | 96402918 | Scripts/c96402918.lua | 1 |
| Unchained Malevolent Magistrate Kamura | 68625623 | Scripts/c68625623.lua | 2 |
| Cyberse Enchanter | 60279710 | Scripts/c60279710.lua | 3 |
| Borrelguard Dragon | 68987122 | Scripts/c68987122.lua | 1 |
| Artmage Diactorus | 27184601 | Scripts/c27184601.lua | 1 |
| Vanquish Soul Jiaolong | 9091064 | Scripts/c9091064.lua | 2 |
| Amaze Attraction Rapid Racing | 55262310 | Scripts/c55262310.lua | 2 |
| Gagaga Escape | 9591819 | Scripts/c9591819.lua | 1 |
| Doll Hammer | 44088353 | Scripts/c44088353.lua | 2 |
| The Phantom Knights of Umbrage Veil | 85257384 | Scripts/c85257384.lua | 1 |
| Number 3: Cicada King | 4997565 | Scripts/c4997565.lua | 1 |
| Digital Bug Scaradiator | 12615446 | Scripts/c12615446.lua | 3 |
| Riot's Reason | 51612489 | Scripts/c51612489.lua | 2 |
| Magikey Beast - Ansyalabolas | 45655875 | Scripts/c45655875.lua | 1 |
| ...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=-1Mimighoul 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() thenAmaze 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)