Skip to content

Effect.SetCostCheck ​

Signature ​

lua
Effect.SetCostCheck(Effect e, bool b) -> void

Description ​

Sets e's cost-check flag to b.

Parameters ​

  • e Effect
  • b bool

Source ​

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

Used By ​

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

  • Detected in 4 indexed script(s).
  • Search this function in the Script Explorer with Effect.SetCostCheck.
CardIDScriptDetected Calls
Kewl Tune Playlist40847034Scripts/c40847034.lua2
Kewl Tune Loudness War41069676Scripts/c41069676.lua2
Destiny HERO - Diamond Dude13093792Scripts/c13093792.lua2
Serial Spell49398568Scripts/c49398568.lua2

Script Examples ​

Kewl Tune Playlist (40847034) ​

Source: Scripts/c40847034.lua

lua
		if tg then
			local cchk=e:IsCostChecked()
			e:SetCostCheck(false)
			tg(e,tp,eg,ep,ev,re,r,rp,1)
			e:SetCostCheck(cchk)

Kewl Tune Loudness War (41069676) ​

Source: Scripts/c41069676.lua

lua
	if tg then
		local cchk=e:IsCostChecked()
		e:SetCostCheck(false)
		tg(e,tp,eg,ep,ev,re,r,rp,1)
		e:SetCostCheck(cchk)

Destiny HERO - Diamond Dude (13093792) ​

Source: Scripts/c13093792.lua

lua
	local ftg=ae:GetTarget()
	if chk==0 then
		e:SetCostCheck(false)
		return not ftg or ftg(e,tp,eg,ep,ev,re,r,rp,chk)
	end