Skip to content

Card.GetPreviousControler ​

Signature ​

lua
Card.GetPreviousControler(Card c) -> int

Description ​

Returns c's previous controller value.

Parameters ​

  • c Card

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.
CardIDScriptDetected Calls
Deftero Enneacraft - "alazoneIA"92171126Scripts/c92171126.lua1
PSY-Framelord Omega74586817Scripts/c74586817.lua1
Hojo the Vaylantz Warrior88919365Scripts/c88919365.lua1
Magikey Dragon - Andrabime71159974Scripts/c71159974.lua1
Arktos XII - Chronochasm Vaylantz50687050Scripts/c50687050.lua1
Ursarctic Quint Charge15758127Scripts/c15758127.lua1
Ghoti Fury65898344Scripts/c65898344.lua2
Cyberse Contract Witch37458564Scripts/c37458564.lua1
Timebreaker Magician80335817Scripts/c80335817.lua2
Red Hypernova Dragon30698243Scripts/c30698243.lua1
Cyberse Witch11674673Scripts/c11674673.lua1
Salamangreat Sunlight Wolf87871125Scripts/c87871125.lua1
Numeron Chaos Ritual41850466Scripts/c41850466.lua1
Yummyusment★Acroquey93360904Scripts/c93360904.lua1
Unchained Soul Lord of Yama24269961Scripts/c24269961.lua1
Ghost Mourner & Moonlit Chill52038441Scripts/c52038441.lua1
Stardust Dragon - Victim Sanctuary76636978Scripts/c76636978.lua1
Vesper Girsu97345699Scripts/c97345699.lua1
Qliphort Genius22423493Scripts/c22423493.lua1
Battle Shogun of the Six Samurai74752631Scripts/c74752631.lua1
Majestic Absorption63144961Scripts/c63144961.lua1
Flash Charge Dragon95372220Scripts/c95372220.lua1
Subterror Behemoth Fiendess74937659Scripts/c74937659.lua1
Doll Hammer44088353Scripts/c44088353.lua1
...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)
end

PSY-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