Card.IsDefensePos
Signature
lua
Card.IsDefensePos(Card c) -> boolDescription
Checks whether c's current position contains POS_DEFENSE.
Parameters
cCard
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.
| Card | ID | Script | Detected Calls |
|---|---|---|---|
| Recette de Viande (Meat Recipe) | 14166715 | Scripts/c14166715.lua | 1 |
| Mimighoul Maker | 13204145 | Scripts/c13204145.lua | 1 |
| Enneacraft Reverth | 80015408 | Scripts/c80015408.lua | 1 |
| Goblin Freefall Squad | 85123771 | Scripts/c85123771.lua | 2 |
| Scareclaw Tri-Heart | 59120809 | Scripts/c59120809.lua | 1 |
| Mermail Abyssbalaen | 75180828 | Scripts/c75180828.lua | 2 |
| Ultimate Conductor Tyranno | 18940556 | Scripts/c18940556.lua | 2 |
| Junk Berserker | 59771339 | Scripts/c59771339.lua | 1 |
| Nitro Warrior | 18013090 | Scripts/c18013090.lua | 1 |
| Majestic Red Dragon | 67030233 | Scripts/c67030233.lua | 1 |
| Superheavy Samurai Helper | 44891812 | Scripts/c44891812.lua | 1 |
| Sangenpai Transcendent Dragion | 18969888 | Scripts/c18969888.lua | 3 |
| Gaming Gamer GG | 15778492 | Scripts/c15778492.lua | 3 |
| Twilight Ninja Getsuga, the Shogun | 76930964 | Scripts/c76930964.lua | 1 |
| Ace★Spades Speculation | 10796448 | Scripts/c10796448.lua | 3 |
| Morphtronic Converter | 90659259 | Scripts/c90659259.lua | 1 |
| Karakuri Super Shogun mdl 00N "Bureibu" | 25904894 | Scripts/c25904894.lua | 1 |
| Mimighoul Archfiend | 50415441 | Scripts/c50415441.lua | 1 |
| Primitive Planet Reichphobia | 56063182 | Scripts/c56063182.lua | 2 |
| Morphtronic Slingen | 75775867 | Scripts/c75775867.lua | 1 |
| Black Rose Dragon | 73580471 | Scripts/c73580471.lua | 3 |
| Number 22: Zombiestein | 73445448 | Scripts/c73445448.lua | 1 |
| Scareclaw Reichheart | 82361809 | Scripts/c82361809.lua | 1 |
| Superheavy Samurai Soulbuster Gauntlet | 35800511 | Scripts/c35800511.lua | 1 |
| ...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)