Skip to content

Duel.IsChainDisabled ​

Signature ​

lua
Duel.IsChainDisabled(int chainc) -> bool

Description ​

Checks whether chainc has already been negated.

Parameters ​

  • chainc int

Returns ​

  • bool

Source ​

  • D:\Programs\GitHub\ygopro-core\libduel.cpp:5063

Used By ​

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

  • Detected in 11 indexed script(s).
  • Search this function in the Script Explorer with Duel.IsChainDisabled.
CardIDScriptDetected Calls
Nervedo the Shadebeast Power Patron17473466Scripts/c17473466.lua1
Tensei Ryu-Ge Anva56322832Scripts/c56322832.lua1
Solfachord Solfegia84693918Scripts/c84693918.lua1
Horoscope Sorcerer, the Stargazer Magician1186447Scripts/c1186447.lua1
Cerulean Skyfire54828837Scripts/c54828837.lua1
D/D Savant Newton19302550Scripts/c19302550.lua1
D/D Savant Copernicus46796664Scripts/c46796664.lua1
Dinomist Brachion368382Scripts/c368382.lua1
Dinomist Plesios38988538Scripts/c38988538.lua1
Dinomist Ankylos32134638Scripts/c32134638.lua1
White Wing Magician11067666Scripts/c11067666.lua1

Script Examples ​

Nervedo the Shadebeast Power Patron (17473466) ​

Source: Scripts/c17473466.lua

lua
		and re:IsActiveType(TYPE_MONSTER)
		and Duel.GetFlagEffect(tp,id)==0
		and Duel.IsChainDisablable(ev) and not Duel.IsChainDisabled(ev)
end
function s.negop(e,tp,eg,ep,ev,re,r,rp)

Tensei Ryu-Ge Anva (56322832) ​

Source: Scripts/c56322832.lua

lua
	return rp==1-tp and p==tp and te and te:GetHandler():IsSetCard(0x1c0) and te:IsActiveType(TYPE_SPELL)
		and Duel.GetFlagEffect(tp,id)==0
		and Duel.IsChainDisablable(ev) and not Duel.IsChainDisabled(ev)
end
function s.negop(e,tp,eg,ep,ev,re,r,rp)

Solfachord Solfegia (84693918) ​

Source: Scripts/c84693918.lua

lua
		and re:IsActiveType(TYPE_MONSTER)
		and Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_MZONE,0,1,nil)
		and Duel.IsChainDisablable(ev) and not Duel.IsChainDisabled(ev)
end
function s.negop(e,tp,eg,ep,ev,re,r,rp)