Skip to content

Auxiliary.damcon1 ​

Signature ​

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

Description ​

Condition helper for effects that would make player tp take effect damage. It checks the operation info for damage to tp, or recovery to tp that is reversed into damage, and respects EFFECT_REVERSE_DAMAGE, EFFECT_REVERSE_RECOVER, and EFFECT_NO_EFFECT_DAMAGE.

Parameters ​

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

Returns ​

  • bool

Source ​

  • Utilities/utility.lua:882

Used By ​

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

  • Detected in 21 indexed script(s).
  • Search this function in the Script Explorer with Auxiliary.damcon1.
CardIDScriptDetected Calls
Destiny HERO - Decider64184058Scripts/c64184058.lua1
D/D Savant Newton19302550Scripts/c19302550.lua1
Gouki Octostretch85008676Scripts/c85008676.lua1
Performage Damage Juggler68819554Scripts/c68819554.lua1
D/D Savant Copernicus46796664Scripts/c46796664.lua1
Performapal Rain Goat16617334Scripts/c16617334.lua1
Clear Kuriboh46613515Scripts/c46613515.lua2
Dream Shark6180710Scripts/c6180710.lua1
Performage Flame Eater4807253Scripts/c4807253.lua1
Donyoribo @Ignister14146794Scripts/c14146794.lua1
Performage Stilts Launcher4081665Scripts/c4081665.lua1
Sargasso Lighthouse37511832Scripts/c37511832.lua1
Performage Hat Tricker31292357Scripts/c31292357.lua1
Curse Reflection Doll33391067Scripts/c33391067.lua1
Link Restart27664101Scripts/c27664101.lua1
Crimson Fire24566654Scripts/c24566654.lua1
Junkuriboh38491199Scripts/c38491199.lua1
Ring of Defense58641905Scripts/c58641905.lua1
Achacha Chanbara62476197Scripts/c62476197.lua2
Energy-Absorbing Monolith57006589Scripts/c57006589.lua1
Spell of Pain76714458Scripts/c76714458.lua1

Script Examples ​

Destiny HERO - Decider (64184058) ​

Source: Scripts/c64184058.lua

lua
	e4:SetRange(LOCATION_GRAVE)
	e4:SetCountLimit(1,64184059+EFFECT_COUNT_CODE_DUEL)
	e4:SetCondition(aux.damcon1)
	e4:SetTarget(c64184058.damtg)
	e4:SetOperation(c64184058.damop)

D/D Savant Newton (19302550) ​

Source: Scripts/c19302550.lua

lua
function c19302550.discon(e,tp,eg,ep,ev,re,r,rp)
	return Duel.IsChainDisablable(ev) and not Duel.IsChainDisabled(ev)
		and re:IsActiveType(TYPE_TRAP) and aux.damcon1(e,tp,eg,ep,ev,re,r,rp) and e:GetHandler():GetFlagEffect(19302550)==0
end
function c19302550.disop(e,tp,eg,ep,ev,re,r,rp)

Gouki Octostretch (85008676) ​

Source: Scripts/c85008676.lua

lua
end
function c85008676.damcon2(e,tp,eg,ep,ev,re,r,rp)
	return ep~=tp and aux.damcon1(e,tp,eg,ep,ev,re,r,rp)
end
function c85008676.damop2(e,tp,eg,ep,ev,re,r,rp)