Skip to content

Auxiliary.bdgcon ​

Signature ​

lua
Auxiliary.bdgcon(Effect e, int tp, Group eg, int ep, int ev, Effect re, int r, int rp) -> bool

Description ​

Battle-destroying condition helper for a handler whose battle target is a monster in the Graveyard.

Parameters ​

  • e Effect
  • tp int
  • eg Group
  • ep int
  • ev int
  • re Effect
  • r int
  • rp int

Returns ​

  • bool

Source ​

  • Utilities/utility.lua:777

Used By ​

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

  • Detected in 12 indexed script(s).
  • Search this function in the Script Explorer with Auxiliary.bdgcon.
CardIDScriptDetected Calls
Alien Mother24104865Scripts/c24104865.lua1
Toy Parade92607427Scripts/c92607427.lua1
Number 39: Utopia, Emissary of Light76504386Scripts/c76504386.lua1
Odd-Eyes Saber Dragon19221310Scripts/c19221310.lua1
Draco Berserker of the Tenyi5041348Scripts/c5041348.lua1
Stygian Street Patrol13521194Scripts/c13521194.lua1
CXyz Skypalace Babylon49202331Scripts/c49202331.lua1
Elemental HERO Shining Flare Wingman25366484Scripts/c25366484.lua1
Divine Dragon - Excelion10032958Scripts/c10032958.lua1
Cyber Angel Benten77235086Scripts/c77235086.lua1
Evil HERO Inferno Wing22160245Scripts/c22160245.lua1
Windaar, Sage of Gusto27944249Scripts/c27944249.lua1

Script Examples ​

Alien Mother (24104865) ​

Source: Scripts/c24104865.lua

lua
		e:SetLabel(c:GetFieldID())
	end
	if aux.bdgcon(e,tp,eg,ep,ev,re,r,rp) then
		g:AddCard(t)
		t:RegisterFlagEffect(24104865,RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_BATTLE,0,1)

Toy Parade (92607427) ​

Source: Scripts/c92607427.lua

lua
end
function c92607427.atkcon(e,tp,eg,ep,ev,re,r,rp)
	return aux.bdgcon(e,tp,eg,ep,ev,re,r,rp) and e:GetHandler():IsChainAttackable(0)
end
function c92607427.atkop(e,tp,eg,ep,ev,re,r,rp)

Number 39: Utopia, Emissary of Light (76504386) ​

Source: Scripts/c76504386.lua

lua
			e2:SetCode(EVENT_BATTLE_DESTROYING)
			e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
			e2:SetCondition(aux.bdgcon)
			e2:SetTarget(s.sptg)
			e2:SetOperation(s.spop)