Card.GetPreviousControler
Signature
lua
Card.GetPreviousControler(Card c) -> intDescription
Returns c's previous controller value.
Parameters
cCard
Returns
int
Source
D:\Programs\GitHub\ygopro-core\libcard.cpp:3509
Used By
Generated from the local Scripts/ folder and cards.cdb.
- Detected in 69 indexed script(s).
- Search this function in the Script Explorer with
Card.GetPreviousControler.
| Card | ID | Script | Detected Calls |
|---|---|---|---|
| Deftero Enneacraft - "alazoneIA" | 92171126 | Scripts/c92171126.lua | 1 |
| PSY-Framelord Omega | 74586817 | Scripts/c74586817.lua | 1 |
| Hojo the Vaylantz Warrior | 88919365 | Scripts/c88919365.lua | 1 |
| Magikey Dragon - Andrabime | 71159974 | Scripts/c71159974.lua | 1 |
| Arktos XII - Chronochasm Vaylantz | 50687050 | Scripts/c50687050.lua | 1 |
| Ursarctic Quint Charge | 15758127 | Scripts/c15758127.lua | 1 |
| Ghoti Fury | 65898344 | Scripts/c65898344.lua | 2 |
| Cyberse Contract Witch | 37458564 | Scripts/c37458564.lua | 1 |
| Timebreaker Magician | 80335817 | Scripts/c80335817.lua | 2 |
| Red Hypernova Dragon | 30698243 | Scripts/c30698243.lua | 1 |
| Cyberse Witch | 11674673 | Scripts/c11674673.lua | 1 |
| Salamangreat Sunlight Wolf | 87871125 | Scripts/c87871125.lua | 1 |
| Numeron Chaos Ritual | 41850466 | Scripts/c41850466.lua | 1 |
| Yummyusment★Acroquey | 93360904 | Scripts/c93360904.lua | 1 |
| Unchained Soul Lord of Yama | 24269961 | Scripts/c24269961.lua | 1 |
| Ghost Mourner & Moonlit Chill | 52038441 | Scripts/c52038441.lua | 1 |
| Stardust Dragon - Victim Sanctuary | 76636978 | Scripts/c76636978.lua | 1 |
| Vesper Girsu | 97345699 | Scripts/c97345699.lua | 1 |
| Qliphort Genius | 22423493 | Scripts/c22423493.lua | 1 |
| Battle Shogun of the Six Samurai | 74752631 | Scripts/c74752631.lua | 1 |
| Majestic Absorption | 63144961 | Scripts/c63144961.lua | 1 |
| Flash Charge Dragon | 95372220 | Scripts/c95372220.lua | 1 |
| Subterror Behemoth Fiendess | 74937659 | Scripts/c74937659.lua | 1 |
| Doll Hammer | 44088353 | Scripts/c44088353.lua | 1 |
| ...and 45 more |
Script Examples
Deftero Enneacraft - "alazoneIA" (92171126)
Source: Scripts/c92171126.lua
lua
g:DeleteGroup()
local tc=sg:GetFirst()
Duel.SendtoHand(tc,tc:GetPreviousControler(),REASON_EFFECT)
endPSY-Framelord Omega (74586817)
Source: Scripts/c74586817.lua
lua
Duel.ReturnToField(tc)
else
Duel.SendtoHand(tc,tc:GetPreviousControler(),REASON_EFFECT)
end
tc=sg:GetNext()Hojo the Vaylantz Warrior (88919365)
Source: Scripts/c88919365.lua
lua
local ph=Duel.GetCurrentPhase()
return c:IsPreviousLocation(LOCATION_MZONE) and c:IsLocation(LOCATION_MZONE)
and (c:GetPreviousSequence()~=c:GetSequence() or c:GetPreviousControler()~=tp)
and ph~=PHASE_DAMAGE and ph~=PHASE_DAMAGE_CAL
end