Skip to content

Effect.IsHasCategory ​

Signature ​

lua
Effect.IsHasCategory(Effect e, int cate) -> bool

Description ​

Checks whether e's category bitmask contains cate.

Parameters ​

  • e Effect
  • cate int

Returns ​

  • bool

Source ​

  • D:\Programs\GitHub\ygopro-core\libeffect.cpp:651

Used By ​

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

  • Detected in 40 indexed script(s).
  • Search this function in the Script Explorer with Effect.IsHasCategory.
CardIDScriptDetected Calls
Deftero Enneacraft - "alazoneIA"92171126Scripts/c92171126.lua2
Enneacraft - Archa.TAIL81237046Scripts/c81237046.lua1
Artmage Pact -Awakening-23599634Scripts/c23599634.lua2
Ekto Enneacraft - "tromarIA"29570824Scripts/c29570824.lua1
Trito Enneacraft - "exapatisIA"44716748Scripts/c44716748.lua2
Branded Retribution17751597Scripts/c17751597.lua1
Dragonroid9069157Scripts/c9069157.lua2
Meklord Emperor Wisel - Synchro Absorption30221870Scripts/c30221870.lua1
Underworld Goddess of the Closed World98127546Scripts/c98127546.lua1
Shooting Star Dragon24696097Scripts/c24696097.lua1
Evil★Twin GG EZ34365442Scripts/c34365442.lua1
Stardust Dragon44508094Scripts/c44508094.lua1
D/D/D Wave High King Caesar79559912Scripts/c79559912.lua1
Cyber Angel Vrash78316184Scripts/c78316184.lua1
Tearlaments Rulkallos84330567Scripts/c84330567.lua1
Derk, Longing for the Blue Skies46708514Scripts/c46708514.lua1
Armament Reincarnation53770666Scripts/c53770666.lua1
Candelato, the Beast of Light8315896Scripts/c8315896.lua2
Branded Lost18973184Scripts/c18973184.lua2
Vendread Chimera13482075Scripts/c13482075.lua1
Cielo, the Night Sky of Raise Moon - No More Bets!73090586Scripts/c73090586.lua2
Shipping Error58761791Scripts/c58761791.lua2
Magical Meltdown47679935Scripts/c47679935.lua2
Retaliating "C"46502744Scripts/c46502744.lua1
...and 16 more

Script Examples ​

Deftero Enneacraft - "alazoneIA" (92171126) ​

Source: Scripts/c92171126.lua

lua
end
function s.thcon2(e,tp,eg,ep,ev,re,r,rp)
	local ex4=re:IsHasCategory(CATEGORY_DRAW)
	local ex5=re:IsHasCategory(CATEGORY_SEARCH)
	return ep==1-tp and (ex4 or ex5) and e:GetHandler():IsFacedown()

Enneacraft - Archa.TAIL (81237046) ​

Source: Scripts/c81237046.lua

lua
function s.indcon(e,tp,eg,ep,ev,re,r,rp)
	if e:GetHandler():IsStatus(STATUS_BATTLE_DESTROYED) or not Duel.IsChainNegatable(ev) then return false end
	if re:IsHasCategory(CATEGORY_NEGATE)
		and Duel.GetChainInfo(ev-1,CHAININFO_TRIGGERING_EFFECT):IsHasType(EFFECT_TYPE_ACTIVATE) then return false end
	local ex,tg,tc=Duel.GetOperationInfo(ev,CATEGORY_DESTROY)

Artmage Pact -Awakening- (23599634) ​

Source: Scripts/c23599634.lua

lua
	local p=e:GetHandlerPlayer()
	local te,tp=Duel.GetChainInfo(ct,CHAININFO_TRIGGERING_EFFECT,CHAININFO_TRIGGERING_PLAYER)
	return p==tp and te:IsHasCategory(CATEGORY_FUSION_SUMMON)
end
function s.limfilter(c,tp)