Skip to content

Duel.IsChainDisablable ​

Signature ​

lua
Duel.IsChainDisablable(int chainc) -> bool

Description ​

Checks whether chainc's effect can be negated. While a Chain is resolving, this asks the core whether that Chain link can currently be disabled; outside Chain resolution it returns true.

Parameters ​

  • chainc int

Returns ​

  • bool

Source ​

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

Used By ​

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

  • Detected in 166 indexed script(s).
  • Search this function in the Script Explorer with Duel.IsChainDisablable.
CardIDScriptDetected Calls
Enneacraft - Asta.PIXEA28454232Scripts/c28454232.lua1
W:P Fancy Ball4993187Scripts/c4993187.lua1
Nervedo the Shadebeast Power Patron17473466Scripts/c17473466.lua1
Number 38: Hope Harbinger Dragon Titanic Galaxy63767246Scripts/c63767246.lua1
Shimmering Shatterer of the Sacred Beasts3441553Scripts/c3441553.lua2
Tensei Ryu-Ge Anva56322832Scripts/c56322832.lua1
Gilti-Gearfried the Magical Steel Knight49161188Scripts/c49161188.lua1
Solfachord Solfegia84693918Scripts/c84693918.lua1
Horoscope Sorcerer, the Stargazer Magician1186447Scripts/c1186447.lua1
Odd-Eyes Pendulumgraph Dragon66425726Scripts/c66425726.lua1
Dinomist Rex63251695Scripts/c63251695.lua1
Stardust Dragon - Victim Sanctuary76636978Scripts/c76636978.lua1
Arrow of Regulus60439482Scripts/c60439482.lua1
Volcanic Inferno84138874Scripts/c84138874.lua1
Dragunity Lord - Georgius70522875Scripts/c70522875.lua1
Rindbrumm the Striking Dragon51409648Scripts/c51409648.lua1
Imposter Shift89027418Scripts/c89027418.lua1
Stardust Sifr Divine Dragon26268488Scripts/c26268488.lua1
Marincess Aqua Argonaut20934852Scripts/c20934852.lua1
Rubysapphirus, the Adamant Jewel6906306Scripts/c6906306.lua1
Dragon's Light and Darkness63295720Scripts/c63295720.lua1
Master Peace, the True Dracoverlord12800564Scripts/c12800564.lua1
Odd-Eyes Override Dragon58083496Scripts/c58083496.lua1
Mystical Elf - White Lightning15613529Scripts/c15613529.lua1
...and 142 more

Script Examples ​

Enneacraft - Asta.PIXEA (28454232) ​

Source: Scripts/c28454232.lua

lua
	if not re:IsHasProperty(EFFECT_FLAG_CARD_TARGET) then return false end
	local tg=Duel.GetChainInfo(ev,CHAININFO_TARGET_CARDS)
	return Duel.IsChainDisablable(ev) and tg and tg:IsExists(s.ccfilter,1,nil,tp) and ep~=tp and e:GetHandler():IsFacedown()
end
function s.discost(e,tp,eg,ep,ev,re,r,rp,chk)

W:P Fancy Ball (4993187) ​

Source: Scripts/c4993187.lua

lua
	local loc=Duel.GetChainInfo(ev,CHAININFO_TRIGGERING_LOCATION)
	return ep~=tp and (LOCATION_ONFIELD+LOCATION_GRAVE)&loc~=0
		and re:IsActiveType(TYPE_MONSTER) and Duel.IsChainDisablable(ev)
end
function s.discost(e,tp,eg,ep,ev,re,r,rp,chk)

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)