Skip to content

Effect.IsCostChecked ​

Signature ​

lua
Effect.IsCostChecked(Effect e) -> bool

Description ​

Checks whether e's cost has already been checked, which indicates whether it was copied.

Parameters ​

  • e Effect

Returns ​

  • bool

Source ​

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

Used By ​

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

  • Detected in 252 indexed script(s).
  • Search this function in the Script Explorer with Effect.IsCostChecked.
CardIDScriptDetected Calls
Salamandra with Chain62091148Scripts/c62091148.lua1
Pendulum Evolution55795155Scripts/c55795155.lua1
Accel Synchro Stardust Dragon30983281Scripts/c30983281.lua1
Ashtraja Susanoo17020474Scripts/c17020474.lua1
Gem-Knight Dispersion24220368Scripts/c24220368.lua4
Magnet Bonding65514302Scripts/c65514302.lua5
Hecahands Tartaros57809669Scripts/c57809669.lua4
Converging Wishes20007374Scripts/c20007374.lua1
Graydle Split75361204Scripts/c75361204.lua1
Ursarctic Polar Star62714453Scripts/c62714453.lua1
Vidolium the Unstable Power Patron of Unity70488851Scripts/c70488851.lua2
Cerynemesia, Mystical Beast of the Forest43632709Scripts/c43632709.lua1
Mitsurugi Magatama76725398Scripts/c76725398.lua3
Witchcrafter Celebration6958567Scripts/c6958567.lua2
Chef de Nouvelles29251488Scripts/c29251488.lua1
Super Duper Polymerization44886582Scripts/c44886582.lua1
Secrets of Dark Magic59514116Scripts/c59514116.lua2
Double Interlock38129297Scripts/c38129297.lua5
Dark Contact77124096Scripts/c77124096.lua4
Clown Crew Soiree Operations70058649Scripts/c70058649.lua4
Astrazma Urania18738846Scripts/c18738846.lua1
Amaze Attraction Wonder Wheel93473606Scripts/c93473606.lua1
Yummy☆Surprise29369059Scripts/c29369059.lua6
Angello Vaalmonica3048768Scripts/c3048768.lua1
...and 228 more

Script Examples ​

Salamandra with Chain (62091148) ​

Source: Scripts/c62091148.lua

lua
function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
	if chkc then return chkc:IsControler(tp) and chkc:IsLocation(LOCATION_MZONE) and s.filter(chkc) end
	if chk==0 then return e:IsCostChecked()
		and Duel.IsExistingTarget(s.filter,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil) end
	Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_EQUIP)

Pendulum Evolution (55795155) ​

Source: Scripts/c55795155.lua

lua
end
function c55795155.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
	if chk==0 then return e:IsCostChecked()
		and Duel.IsExistingMatchingCard(c55795155.cfilter,tp,LOCATION_HAND,0,1,nil,tp) end
	Duel.Hint(HINT_OPSELECTED,1-tp,e:GetDescription())

Accel Synchro Stardust Dragon (30983281) ​

Source: Scripts/c30983281.lua

lua
function c30983281.sctg(e,tp,eg,ep,ev,re,r,rp,chk)
	if chk==0 then
		if e:IsCostChecked() then return true end
		local c=e:GetHandler()
		local ect1=c29724053 and Duel.IsPlayerAffectedByEffect(tp,29724053) and c29724053[tp]