Commit a06e7b15 authored by salix5's avatar salix5

fix: Magical Hats

https://www.db.yugioh-card.com/yugiohdb/faq_search.action?ope=5&fid=8792&keyword=&tag=-1
https://yugioh-wiki.net/index.php?%C3%CF%C7%FB%BF%C0
Q:フィールド上に地縛神が1体存在している時に、墓地の地縛神を《浅すぎた墓穴》で特殊召喚できますか?
A:地縛神を対象に《浅すぎた墓穴》を発動できません。(16/09/26)
Card,IsCanBeSpecialSummoned() will check uniqueness.
parent 19d3c54b
...@@ -18,7 +18,7 @@ function c81210420.filter(c) ...@@ -18,7 +18,7 @@ function c81210420.filter(c)
return c:GetSequence()<5 and not c:IsType(TYPE_TOKEN+TYPE_LINK) return c:GetSequence()<5 and not c:IsType(TYPE_TOKEN+TYPE_LINK)
end end
function c81210420.spfilter(c,e,tp) function c81210420.spfilter(c,e,tp)
return c:IsType(TYPE_SPELL+TYPE_TRAP) and Duel.IsPlayerCanSpecialSummonMonster(tp,c:GetCode(),nil,0x11,0,0,0,0,0,POS_FACEDOWN) return c:IsType(TYPE_SPELL+TYPE_TRAP) and c:IsCanBeSpecialSummoned(e,0,tp,true,false,POS_FACEDOWN_DEFENSE)
end end
function c81210420.target(e,tp,eg,ep,ev,re,r,rp,chk) function c81210420.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c81210420.filter,tp,LOCATION_MZONE,0,1,nil) if chk==0 then return Duel.IsExistingMatchingCard(c81210420.filter,tp,LOCATION_MZONE,0,1,nil)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment