Skip to content

Card.IsDefensePos ​

Signature ​

lua
Card.IsDefensePos(Card c) -> bool

Description ​

Checks whether c's current position contains POS_DEFENSE.

Parameters ​

  • c Card

Returns ​

  • bool

Source ​

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

Used By ​

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

  • Detected in 121 indexed script(s).
  • Search this function in the Script Explorer with Card.IsDefensePos.
CardIDScriptDetected Calls
Recette de Viande (Meat Recipe)14166715Scripts/c14166715.lua1
Mimighoul Maker13204145Scripts/c13204145.lua1
Enneacraft Reverth80015408Scripts/c80015408.lua1
Goblin Freefall Squad85123771Scripts/c85123771.lua2
Scareclaw Tri-Heart59120809Scripts/c59120809.lua1
Mermail Abyssbalaen75180828Scripts/c75180828.lua2
Ultimate Conductor Tyranno18940556Scripts/c18940556.lua2
Junk Berserker59771339Scripts/c59771339.lua1
Nitro Warrior18013090Scripts/c18013090.lua1
Majestic Red Dragon67030233Scripts/c67030233.lua1
Superheavy Samurai Helper44891812Scripts/c44891812.lua1
Sangenpai Transcendent Dragion18969888Scripts/c18969888.lua3
Gaming Gamer GG15778492Scripts/c15778492.lua3
Twilight Ninja Getsuga, the Shogun76930964Scripts/c76930964.lua1
Ace★Spades Speculation10796448Scripts/c10796448.lua3
Morphtronic Converter90659259Scripts/c90659259.lua1
Karakuri Super Shogun mdl 00N "Bureibu"25904894Scripts/c25904894.lua1
Mimighoul Archfiend50415441Scripts/c50415441.lua1
Primitive Planet Reichphobia56063182Scripts/c56063182.lua2
Morphtronic Slingen75775867Scripts/c75775867.lua1
Black Rose Dragon73580471Scripts/c73580471.lua3
Number 22: Zombiestein73445448Scripts/c73445448.lua1
Scareclaw Reichheart82361809Scripts/c82361809.lua1
Superheavy Samurai Soulbuster Gauntlet35800511Scripts/c35800511.lua1
...and 97 more

Script Examples ​

Recette de Viande (Meat Recipe) (14166715) ​

Source: Scripts/c14166715.lua

lua
function s.extraop(e,tp,eg,ep,ev,re,r,rp,tc,mat)
	if not tc or not tc:IsCode(53618197) then return end
	local g=Duel.GetMatchingGroup(Card.IsDefensePos,tp,0,LOCATION_MZONE,nil)
	if #g>0 and Duel.SelectYesNo(tp,aux.Stringid(id,0)) then
		Duel.BreakEffect()

Mimighoul Maker (13204145) ​

Source: Scripts/c13204145.lua

lua
end
function s.posfilter(c)
	return c:IsFacedown() and c:IsDefensePos()
end
function s.postg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)

Enneacraft Reverth (80015408) ​

Source: Scripts/c80015408.lua

lua
end
function s.posfilter(c)
	return c:IsSetCard(0x1d4) and c:IsFacedown() and c:IsDefensePos()
end
function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk)