Skip to content

Card.GetEffectCount ​

Signature ​

lua
Card.GetEffectCount(Card c, int code) -> int

Description ​

Returns the number of effects with code currently found by c's effect filter.

Parameters ​

  • c Card
  • code int

Returns ​

  • int

Source ​

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

Used By ​

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

  • Detected in 20 indexed script(s).
  • Search this function in the Script Explorer with Card.GetEffectCount.
CardIDScriptDetected Calls
ZW - Leo Arms60992364Scripts/c60992364.lua1
Inzektor Hopper52601736Scripts/c52601736.lua1
Galaxy-Eyes Antimatter Dragon92517928Scripts/c92517928.lua4
Dragunity Pilum52977572Scripts/c52977572.lua1
Pegasus Wing72083436Scripts/c72083436.lua1
Gagaga Samurai91499077Scripts/c91499077.lua1
Cyberse Accelerator89238128Scripts/c89238128.lua1
Yosenju Kama 292246806Scripts/c92246806.lua1
Masked HERO Anki59642500Scripts/c59642500.lua1
Lineage of Destruction29307554Scripts/c29307554.lua1
Infernity Queen53246495Scripts/c53246495.lua1
Hi-Five the Sky91677585Scripts/c91677585.lua1
Psychic Snail58453942Scripts/c58453942.lua1
Baby Tiragon12533811Scripts/c12533811.lua1
Number 28: Titanic Moth53701457Scripts/c53701457.lua1
Crystal Beast Amethyst Cat32933942Scripts/c32933942.lua1
Submarineroid99861526Scripts/c99861526.lua1
Elemental HERO Rampart Blaster47737087Scripts/c47737087.lua1
Fortune Chariot39299733Scripts/c39299733.lua1
Sonic Shooter40384720Scripts/c40384720.lua1

Script Examples ​

ZW - Leo Arms (60992364) ​

Source: Scripts/c60992364.lua

lua
function c60992364.attg(e,tp,eg,ep,ev,re,r,rp,chk)
	local eqc=e:GetHandler():GetEquipTarget()
	if chk==0 then return eqc and eqc:GetAttackedCount()==1 and eqc:GetEffectCount(EFFECT_EXTRA_ATTACK)==0 end
	Duel.SetTargetCard(e:GetLabelObject())
end

Inzektor Hopper (52601736) ​

Source: Scripts/c52601736.lua

lua
	local tc=e:GetHandler():GetEquipTarget()
	return Duel.IsAbleToEnterBP()
		and tc and tc:IsAttackable() and tc:GetEffectCount(EFFECT_DIRECT_ATTACK)==0
end
function c52601736.ftarget(e,c)

Galaxy-Eyes Antimatter Dragon (92517928) ​

Source: Scripts/c92517928.lua

lua
end
function s.atktg(e,tp,eg,ep,ev,re,r,rp,chk)
	if chk==0 then return e:GetHandler():GetEffectCount(EFFECT_EXTRA_ATTACK)==0
		and e:GetHandler():GetEffectCount(EFFECT_EXTRA_ATTACK_MONSTER)==0 end
	if e:GetLabel()~=0 then