Skip to content

Duel.NegateRelatedChain ​

Signature ​

lua
Duel.NegateRelatedChain(Card c, int reset_flag) -> void

Description ​

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 ​

  • c Card - Card whose related earlier Chain Links should receive EFFECT_DISABLE_CHAIN.
  • reset_flag int - 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.
CardIDScriptDetected Calls
El Shaddoll Apkallone50907446Scripts/c50907446.lua1
D/D/D/D Dimensional King Arc Crisis71398055Scripts/c71398055.lua1
Shooting Majestic Star Dragon40939228Scripts/c40939228.lua1
Starving Venemy Dragon93729065Scripts/c93729065.lua1
DoSolfachord Coolia80776622Scripts/c80776622.lua1
Transonic Bird34072799Scripts/c34072799.lua1
Starving Venom Wing Dragon5148778Scripts/c5148778.lua1
Starving Venom Fusion Dragon, Four Heavenly Dragons27118421Scripts/c27118421.lua1
Sacred Beasts Combined Assault50147815Scripts/c50147815.lua1
Dracotail Mululu7375867Scripts/c7375867.lua1
Cyber Dragon, the Luminous Mech Dragon66664203Scripts/c66664203.lua1
Power Tool Braver Dragon63265554Scripts/c63265554.lua1
Astrazma Urania18738846Scripts/c18738846.lua1
Clear Wing Fast Dragon90036274Scripts/c90036274.lua1
Elfnotes: Rhapsodia of Madness24092792Scripts/c24092792.lua1
Traptrix Atypus48183890Scripts/c48183890.lua1
Radiant Typhoon Mandate53813120Scripts/c53813120.lua1
Unchained Soul Rage Abominator21419436Scripts/c21419436.lua1
Weaver of Fairy Tails78021082Scripts/c78021082.lua1
Borrelshroud Dragon66452432Scripts/c66452432.lua1
Ekto Enneacraft - "tromarIA"29570824Scripts/c29570824.lua1
Clown Crew Biancaviso82159583Scripts/c82159583.lua1
Shadow Severing Strike57232301Scripts/c57232301.lua1
Dual Avatar Feet - Armored Un-Gyo7631534Scripts/c7631534.lua1
...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)