Skip to content

Card.IsCanBeDisabledByEffect ​

Signature ​

lua
Card.IsCanBeDisabledByEffect(Card c, Effect e, [bool isMonsterEffect]) -> bool

Description ​

Checks whether c's effects can be negated by e. Cards that are already negated, have no original effects, or are unaffected by e cannot be negated. The optional third parameter indicates whether this is a monster effect.

Parameters ​

  • c Card
  • e Effect
  • isMonsterEffect bool optional

Returns ​

  • bool

Source ​

  • D:\Programs\GitHub\ygopro-core\libcard.cpp:3702

Guided Examples ​

Learn how to use this function in context:

Used By ​

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

  • Detected in 108 indexed script(s).
  • Search this function in the Script Explorer with Card.IsCanBeDisabledByEffect.
CardIDScriptDetected Calls
El Shaddoll Apkallone50907446Scripts/c50907446.lua1
DoSolfachord Coolia80776622Scripts/c80776622.lua1
Transonic Bird34072799Scripts/c34072799.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
Radiant Typhoon Mandate53813120Scripts/c53813120.lua1
Unchained Soul Rage Abominator21419436Scripts/c21419436.lua1
Weaver of Fairy Tails78021082Scripts/c78021082.lua1
Borrelshroud Dragon66452432Scripts/c66452432.lua1
S-Force Justify35334193Scripts/c35334193.lua1
Icejade Erosion53742162Scripts/c53742162.lua1
Scourge of the White Forest93723936Scripts/c93723936.lua1
Reversal Box2606417Scripts/c2606417.lua1
Stellarnova Binding69678646Scripts/c69678646.lua1
The Chaotic Phantasmal Sacred Beasts7894706Scripts/c7894706.lua1
Dragunity Knight - Areus34528176Scripts/c34528176.lua1
Epurrely Beauty98049934Scripts/c98049934.lua1
Magikey Mechmusket - Batosbuster19489718Scripts/c19489718.lua1
Angel of Blue Tears91706817Scripts/c91706817.lua1
Diabrocken the Ominous Specter6083904Scripts/c6083904.lua1
The Three Champions of Swordsoul74405783Scripts/c74405783.lua1
Kewl Tune RS15665977Scripts/c15665977.lua1
...and 84 more

Script Examples ​

El Shaddoll Apkallone (50907446) ​

Source: Scripts/c50907446.lua

lua
	local c=e:GetHandler()
	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)

DoSolfachord Coolia (80776622) ​

Source: Scripts/c80776622.lua

lua
end
function c80776622.disfilter(c,e)
	return c:IsFaceup() and c:IsRelateToEffect(e) and c:IsCanBeDisabledByEffect(e,false)
end
function c80776622.disop(e,tp,eg,ep,ev,re,r,rp)

Transonic Bird (34072799) ​

Source: Scripts/c34072799.lua

lua
	local c=e:GetHandler()
	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)