Skip to content

Auxiliary.nzdef ​

Signature ​

lua
Auxiliary.nzdef(Card c) -> bool

Description ​

Returns true for face-up cards with current DEF greater than 0.

Parameters ​

  • c Card

Returns ​

  • bool

Source ​

  • Utilities/utility.lua:847

Used By ​

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

  • Detected in 6 indexed script(s).
  • Search this function in the Script Explorer with Auxiliary.nzdef.
CardIDScriptDetected Calls
Apparition91392974Scripts/c91392974.lua1
Superheavy Samurai Helper44891812Scripts/c44891812.lua1
D/D/D Supersight King Zero Maxwell76029419Scripts/c76029419.lua3
Catnipped Kitty96501677Scripts/c96501677.lua3
Wild Nature's Release61166988Scripts/c61166988.lua1
Gravity Lash69319869Scripts/c69319869.lua3

Script Examples ​

Apparition (91392974) ​

Source: Scripts/c91392974.lua

lua
end
function c91392974.atkfilter(c)
	return aux.nzatk(c) or aux.nzdef(c)
end
function c91392974.operation(e,tp,eg,ep,ev,re,r,rp)

Superheavy Samurai Helper (44891812) ​

Source: Scripts/c44891812.lua

lua
end
function c44891812.deffilter(c)
	return c:IsFaceup() and c:IsSetCard(0x9a) and aux.nzdef(c)
end
function c44891812.deftg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)

D/D/D Supersight King Zero Maxwell (76029419) ​

Source: Scripts/c76029419.lua

lua
end
function c76029419.deftg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
	if chkc then return chkc:IsLocation(LOCATION_MZONE) and aux.nzdef(chkc) end
	if chk==0 then return Duel.IsExistingTarget(aux.nzdef,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil) end
	Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP)