Duel.NegateRelatedChain
Signature
lua
Duel.NegateRelatedChain(Card c, int reset_flag) -> voidDescription
For each current Chain Link whose triggering effect is handled by c and still related to c, registers a temporary EFFECT_DISABLE_CHAIN effect on c. The generated disable effect resets with RESET_CHAIN, RESET_EVENT, and the supplied reset flags. The core does nothing if there is no earlier Chain Link to disable or if c is unaffected by the resolving effect.
Parameters
cCard- Card whose related earlier Chain Links should receive EFFECT_DISABLE_CHAIN.reset_flagint- Additional reset mask ORed with RESET_CHAIN and RESET_EVENT on each generated disable effect.
Source
D:\Programs\GitHub\ygopro-core\libduel.cpp:4931
Guided Examples
Learn how to use this function in context:
Used By
Generated from the local Scripts/ folder and cards.cdb.
- Detected in 221 indexed script(s).
- Search this function in the Script Explorer with
Duel.NegateRelatedChain.
| Card | ID | Script | Detected Calls |
|---|---|---|---|
| El Shaddoll Apkallone | 50907446 | Scripts/c50907446.lua | 1 |
| D/D/D/D Dimensional King Arc Crisis | 71398055 | Scripts/c71398055.lua | 1 |
| Shooting Majestic Star Dragon | 40939228 | Scripts/c40939228.lua | 1 |
| Starving Venemy Dragon | 93729065 | Scripts/c93729065.lua | 1 |
| DoSolfachord Coolia | 80776622 | Scripts/c80776622.lua | 1 |
| Transonic Bird | 34072799 | Scripts/c34072799.lua | 1 |
| Starving Venom Wing Dragon | 5148778 | Scripts/c5148778.lua | 1 |
| Starving Venom Fusion Dragon, Four Heavenly Dragons | 27118421 | Scripts/c27118421.lua | 1 |
| Sacred Beasts Combined Assault | 50147815 | Scripts/c50147815.lua | 1 |
| Dracotail Mululu | 7375867 | Scripts/c7375867.lua | 1 |
| Cyber Dragon, the Luminous Mech Dragon | 66664203 | Scripts/c66664203.lua | 1 |
| Power Tool Braver Dragon | 63265554 | Scripts/c63265554.lua | 1 |
| Astrazma Urania | 18738846 | Scripts/c18738846.lua | 1 |
| Clear Wing Fast Dragon | 90036274 | Scripts/c90036274.lua | 1 |
| Elfnotes: Rhapsodia of Madness | 24092792 | Scripts/c24092792.lua | 1 |
| Traptrix Atypus | 48183890 | Scripts/c48183890.lua | 1 |
| Radiant Typhoon Mandate | 53813120 | Scripts/c53813120.lua | 1 |
| Unchained Soul Rage Abominator | 21419436 | Scripts/c21419436.lua | 1 |
| Weaver of Fairy Tails | 78021082 | Scripts/c78021082.lua | 1 |
| Borrelshroud Dragon | 66452432 | Scripts/c66452432.lua | 1 |
| Ekto Enneacraft - "tromarIA" | 29570824 | Scripts/c29570824.lua | 1 |
| Clown Crew Biancaviso | 82159583 | Scripts/c82159583.lua | 1 |
| Shadow Severing Strike | 57232301 | Scripts/c57232301.lua | 1 |
| Dual Avatar Feet - Armored Un-Gyo | 7631534 | Scripts/c7631534.lua | 1 |
| ...and 197 more |
Script Examples
El Shaddoll Apkallone (50907446)
Source: Scripts/c50907446.lua
lua
local tc=Duel.GetFirstTarget()
if tc:IsFaceup() and tc:IsRelateToEffect(e) and tc:IsCanBeDisabledByEffect(e,false) then
Duel.NegateRelatedChain(tc,RESET_TURN_SET)
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)D/D/D/D Dimensional King Arc Crisis (71398055)
Source: Scripts/c71398055.lua
lua
local g=Duel.GetMatchingGroup(aux.NegateMonsterFilter,tp,0,LOCATION_MZONE,nil)
for tc in aux.Next(g) do
Duel.NegateRelatedChain(tc,RESET_TURN_SET)
local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_SINGLE)Shooting Majestic Star Dragon (40939228)
Source: Scripts/c40939228.lua
lua
if tc then
Duel.HintSelection(g)
Duel.NegateRelatedChain(tc,RESET_TURN_SET)
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)