Card.GetBattlePosition
Signature
lua
Card.GetBattlePosition(Card c) -> intDescription
Returns c's temporary battle-position snapshot.
Parameters
cCard
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.
| Card | ID | Script | Detected Calls |
|---|---|---|---|
| Loki, Lord of the Aesir | 67098114 | Scripts/c67098114.lua | 1 |
| Odin, Father of the Aesir | 93483212 | Scripts/c93483212.lua | 1 |
| Thor, Lord of the Aesir | 30604579 | Scripts/c30604579.lua | 1 |
| House Duston | 40343749 | Scripts/c40343749.lua | 1 |
| XX-Saber Fulhelmknight | 78422252 | Scripts/c78422252.lua | 1 |
| Sphinx Teleia | 51402177 | Scripts/c51402177.lua | 1 |
| Umbral Horror Will o' the Wisp | 70546737 | Scripts/c70546737.lua | 1 |
| Andro Sphinx | 15013468 | Scripts/c15013468.lua | 1 |
| Hyper Psychic Blaster | 95526884 | Scripts/c95526884.lua | 1 |
| Psi-Curse | 16678947 | Scripts/c16678947.lua | 1 |
| Greed Grado | 3972721 | Scripts/c3972721.lua | 1 |
| Bird of Roses | 75252099 | Scripts/c75252099.lua | 1 |
| Ally of Justice Field Marshal | 69461394 | Scripts/c69461394.lua | 1 |
| Spyder Spider | 80637190 | Scripts/c80637190.lua | 1 |
| Shinato, King of a Higher Plane | 86327225 | Scripts/c86327225.lua | 1 |
| Earthbound Immortal Cusillu | 33537328 | Scripts/c33537328.lua | 1 |
| 8-Claws Scorpion | 14261867 | Scripts/c14261867.lua | 1 |
| Winged Sage Falcos | 87523462 | Scripts/c87523462.lua | 1 |
| Marshmallon | 31305911 | Scripts/c31305911.lua | 1 |
| Reflect Bounder | 2851070 | Scripts/c2851070.lua | 1 |
| Legacy Hunter | 87010442 | Scripts/c87010442.lua | 1 |
| Great Poseidon Beetle | 75292259 | Scripts/c75292259.lua | 1 |
| Twin-Sword Marauder | 40225398 | Scripts/c40225398.lua | 1 |
| Ballista of Rampart Smashing | 242146 | Scripts/c242146.lua | 1 |
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 thenOdin, 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 thenThor, 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