Skip to content

Card.GetBattlePosition ​

Signature ​

lua
Card.GetBattlePosition(Card c) -> int

Description ​

Returns c's temporary battle-position snapshot.

Parameters ​

  • c Card

Returns ​

  • int

Source ​

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

Used By ​

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

  • Detected in 24 indexed script(s).
  • Search this function in the Script Explorer with Card.GetBattlePosition.
CardIDScriptDetected Calls
Loki, Lord of the Aesir67098114Scripts/c67098114.lua1
Odin, Father of the Aesir93483212Scripts/c93483212.lua1
Thor, Lord of the Aesir30604579Scripts/c30604579.lua1
House Duston40343749Scripts/c40343749.lua1
XX-Saber Fulhelmknight78422252Scripts/c78422252.lua1
Sphinx Teleia51402177Scripts/c51402177.lua1
Umbral Horror Will o' the Wisp70546737Scripts/c70546737.lua1
Andro Sphinx15013468Scripts/c15013468.lua1
Hyper Psychic Blaster95526884Scripts/c95526884.lua1
Psi-Curse16678947Scripts/c16678947.lua1
Greed Grado3972721Scripts/c3972721.lua1
Bird of Roses75252099Scripts/c75252099.lua1
Ally of Justice Field Marshal69461394Scripts/c69461394.lua1
Spyder Spider80637190Scripts/c80637190.lua1
Shinato, King of a Higher Plane86327225Scripts/c86327225.lua1
Earthbound Immortal Cusillu33537328Scripts/c33537328.lua1
8-Claws Scorpion14261867Scripts/c14261867.lua1
Winged Sage Falcos87523462Scripts/c87523462.lua1
Marshmallon31305911Scripts/c31305911.lua1
Reflect Bounder2851070Scripts/c2851070.lua1
Legacy Hunter87010442Scripts/c87010442.lua1
Great Poseidon Beetle75292259Scripts/c75292259.lua1
Twin-Sword Marauder40225398Scripts/c40225398.lua1
Ballista of Rampart Smashing242146Scripts/c242146.lua1

Script Examples ​

Loki, Lord of the Aesir (67098114) ​

Source: Scripts/c67098114.lua

lua
	local c=e:GetHandler()
	local pos=c:GetPreviousPosition()
	if c:IsReason(REASON_BATTLE) then pos=c:GetBattlePosition() end
	if rp==1-tp and c:IsPreviousControler(tp) and c:IsReason(REASON_DESTROY)
		and c:IsPreviousLocation(LOCATION_ONFIELD) and bit.band(pos,POS_FACEUP)~=0 then

Odin, Father of the Aesir (93483212) ​

Source: Scripts/c93483212.lua

lua
	local c=e:GetHandler()
	local pos=c:GetPreviousPosition()
	if c:IsReason(REASON_BATTLE) then pos=c:GetBattlePosition() end
	if rp==1-tp and c:IsPreviousControler(tp) and c:IsReason(REASON_DESTROY)
		and c:IsPreviousLocation(LOCATION_ONFIELD) and bit.band(pos,POS_FACEUP)~=0 then

Thor, Lord of the Aesir (30604579) ​

Source: Scripts/c30604579.lua

lua
	local c=e:GetHandler()
	local pos=c:GetPreviousPosition()
	if c:IsReason(REASON_BATTLE) then pos=c:GetBattlePosition() end
	if rp==1-tp and c:IsPreviousControler(tp) and c:IsReason(REASON_DESTROY)
		and c:IsPreviousLocation(LOCATION_ONFIELD) and bit.band(pos,POS_FACEUP)~=0 then