Skip to content

Card.GetOriginalType ​

Signature ​

lua
Card.GetOriginalType(Card c) -> int

Description ​

Returns c's original card-data type bitmask, not its current modified type.

Parameters ​

  • c Card

Returns ​

  • int

Source ​

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

Guided Examples ​

Learn how to use this function in context:

Used By ​

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

  • Detected in 175 indexed script(s).
  • Search this function in the Script Explorer with Card.GetOriginalType.
CardIDScriptDetected Calls
Astrograph Sorcerer, the Starfrost Magician48171151Scripts/c48171151.lua1
D/D/D Alfred the Divine Sage King11852093Scripts/c11852093.lua1
Favorite HERO Flame Wingman13243124Scripts/c13243124.lua1
GMX Associate Noma83528184Scripts/c83528184.lua1
Fiendsmith Kyrie26434972Scripts/c26434972.lua1
D/D Extra Surveyor74387963Scripts/c74387963.lua1
Vaylantz Genesis Grand Duke76075139Scripts/c76075139.lua1
Mementotlan Shleepy50042011Scripts/c50042011.lua1
Zoroa, the Magistus Verethragna37260677Scripts/c37260677.lua1
D/D/D Deviser King Deus Machinex46593546Scripts/c46593546.lua1
Emperor Charles the Great97864322Scripts/c97864322.lua2
Angello Vaalmonica3048768Scripts/c3048768.lua1
Spirit Poacher85150300Scripts/c85150300.lua1
Metaltron XII, the True Dracombatant57761191Scripts/c57761191.lua2
Angelechy Problem17782288Scripts/c17782288.lua2
Dimonno Vaalmonica30432463Scripts/c30432463.lua1
Crystron Halqifibrax Prism65400671Scripts/c65400671.lua1
Capsule Monster Chess24056179Scripts/c24056179.lua1
Millennium-Eyes Restrict41578483Scripts/c41578483.lua1
Enneacraft Reverth80015408Scripts/c80015408.lua1
Zebufera, Vaalmonican Hallow Heathen2815176Scripts/c2815176.lua1
Emblema Salvation61950680Scripts/c61950680.lua1
Cynet Backdoor43839002Scripts/c43839002.lua1
Performage Ball Balancer92530005Scripts/c92530005.lua1
...and 151 more

Script Examples ​

Astrograph Sorcerer, the Starfrost Magician (48171151) ​

Source: Scripts/c48171151.lua

lua
function s.desfilter(c,tp)
	return c:IsPreviousControler(tp) and c:IsPreviousPosition(POS_FACEUP) and c:IsReason(REASON_BATTLE+REASON_EFFECT)
		and c:GetOriginalType()&TYPE_MONSTER~=0 and c:IsPreviousLocation(LOCATION_ONFIELD)
end
function s.spcon1(e,tp,eg,ep,ev,re,r,rp)

D/D/D Alfred the Divine Sage King (11852093) ​

Source: Scripts/c11852093.lua

lua
end
function s.spfilter1(c,e)
	return (c:IsLocation(LOCATION_MZONE) or c:IsFaceupEx() and c:GetOriginalType()&TYPE_MONSTER~=0)
		and c:IsCanBeFusionMaterial() and c:IsAbleToDeck() and not c:IsImmuneToEffect(e)
end

Favorite HERO Flame Wingman (13243124) ​

Source: Scripts/c13243124.lua

lua
end
function s.cfilter(c)
	return (c:IsPreviousLocation(LOCATION_MZONE) or c:GetOriginalType()&TYPE_MONSTER~=0)
		and c:IsReason(REASON_BATTLE)
end