Skip to content

Auxiliary.NegateAnyFilter ​

Signature ​

lua
Auxiliary.NegateAnyFilter(Card c) -> bool

Description ​

Filter for effects that negate a face-up card. Trap Monsters only need to be face-up, Spell/Trap Cards must be face-up and not already disabled, and monsters use Auxiliary.NegateMonsterFilter.

Parameters ​

  • c Card

Returns ​

  • bool - true if c is a valid card to have its effects negated.

Source ​

  • Utilities/utility.lua:755

Used By ​

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

  • Detected in 86 indexed script(s).
  • Search this function in the Script Explorer with Auxiliary.NegateAnyFilter.
CardIDScriptDetected Calls
El Shaddoll Apkallone50907446Scripts/c50907446.lua3
DoSolfachord Coolia80776622Scripts/c80776622.lua3
Transonic Bird34072799Scripts/c34072799.lua3
Sacred Beasts Combined Assault50147815Scripts/c50147815.lua2
Astrazma Urania18738846Scripts/c18738846.lua4
Elfnotes: Rhapsodia of Madness24092792Scripts/c24092792.lua2
Traptrix Atypus48183890Scripts/c48183890.lua3
Radiant Typhoon Mandate53813120Scripts/c53813120.lua3
Borrelshroud Dragon66452432Scripts/c66452432.lua2
Rank-Up-Magic Numeron Force48333324Scripts/c48333324.lua1
Clown Crew Biancaviso82159583Scripts/c82159583.lua4
Shadow Severing Strike57232301Scripts/c57232301.lua1
Gouki The Master Ogre30286474Scripts/c30286474.lua5
Icejade Erosion53742162Scripts/c53742162.lua2
Scourge of the White Forest93723936Scripts/c93723936.lua1
Dragunity Knight - Areus34528176Scripts/c34528176.lua3
Qliphort Genius22423493Scripts/c22423493.lua5
Ars Magna - "Philosophirum"90728287Scripts/c90728287.lua2
Gunkan Suship Uni-class Super-Dreadnought94798725Scripts/c94798725.lua3
Despian Luluwalilith53971455Scripts/c53971455.lua1
Goblin Freefall Squad85123771Scripts/c85123771.lua1
Diabrocken the Ominous Specter6083904Scripts/c6083904.lua3
The Three Champions of Swordsoul74405783Scripts/c74405783.lua3
Kewl Tune RS15665977Scripts/c15665977.lua3
...and 62 more

Script Examples ​

El Shaddoll Apkallone (50907446) ​

Source: Scripts/c50907446.lua

lua
end
function c50907446.distg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
	if chkc then return chkc:IsOnField() and aux.NegateAnyFilter(chkc) end
	if chk==0 then return Duel.IsExistingTarget(aux.NegateAnyFilter,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,nil) end
	Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DISABLE)

DoSolfachord Coolia (80776622) ​

Source: Scripts/c80776622.lua

lua
end
function c80776622.distg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
	if chkc then return chkc:IsOnField() and chkc:IsControler(1-tp) and aux.NegateAnyFilter(chkc) end
	if chk==0 then return Duel.IsExistingTarget(aux.NegateAnyFilter,tp,0,LOCATION_ONFIELD,1,nil) end
	local ct=1

Transonic Bird (34072799) ​

Source: Scripts/c34072799.lua

lua
end
function c34072799.negtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
	if chkc then return chkc:IsControler(1-tp) and chkc:IsOnField() and aux.NegateAnyFilter(chkc) end
	if chk==0 then return Duel.IsExistingTarget(aux.NegateAnyFilter,tp,0,LOCATION_ONFIELD,1,nil) end
	Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DISABLE)