Auxiliary.damcon1
Signature
lua
Auxiliary.damcon1(Effect e, int tp, Group eg, int ep, int ev, Effect re, int r, int rp) -> boolDescription
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
eEffecttpintegGroupepintevintreEffectrintrpint
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.
| Card | ID | Script | Detected Calls |
|---|---|---|---|
| Destiny HERO - Decider | 64184058 | Scripts/c64184058.lua | 1 |
| D/D Savant Newton | 19302550 | Scripts/c19302550.lua | 1 |
| Gouki Octostretch | 85008676 | Scripts/c85008676.lua | 1 |
| Performage Damage Juggler | 68819554 | Scripts/c68819554.lua | 1 |
| D/D Savant Copernicus | 46796664 | Scripts/c46796664.lua | 1 |
| Performapal Rain Goat | 16617334 | Scripts/c16617334.lua | 1 |
| Clear Kuriboh | 46613515 | Scripts/c46613515.lua | 2 |
| Dream Shark | 6180710 | Scripts/c6180710.lua | 1 |
| Performage Flame Eater | 4807253 | Scripts/c4807253.lua | 1 |
| Donyoribo @Ignister | 14146794 | Scripts/c14146794.lua | 1 |
| Performage Stilts Launcher | 4081665 | Scripts/c4081665.lua | 1 |
| Sargasso Lighthouse | 37511832 | Scripts/c37511832.lua | 1 |
| Performage Hat Tricker | 31292357 | Scripts/c31292357.lua | 1 |
| Curse Reflection Doll | 33391067 | Scripts/c33391067.lua | 1 |
| Link Restart | 27664101 | Scripts/c27664101.lua | 1 |
| Crimson Fire | 24566654 | Scripts/c24566654.lua | 1 |
| Junkuriboh | 38491199 | Scripts/c38491199.lua | 1 |
| Ring of Defense | 58641905 | Scripts/c58641905.lua | 1 |
| Achacha Chanbara | 62476197 | Scripts/c62476197.lua | 2 |
| Energy-Absorbing Monolith | 57006589 | Scripts/c57006589.lua | 1 |
| Spell of Pain | 76714458 | Scripts/c76714458.lua | 1 |
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)