Commit 628dd056 authored by wind2009's avatar wind2009

Fix 超量士ブラックレイヤー

parent c4f4e86a
No preview for this file type
...@@ -60,7 +60,7 @@ function s.spop1(e,tp,eg,ep,ev,re,r,rp) ...@@ -60,7 +60,7 @@ function s.spop1(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function s.spfilter(c,e,tp,mc) function s.spfilter(c,e,tp,mc)
return c:IsSetCard(0xdc) and c:IsType(TYPE_XYZ) and mc:IsCanBeXyzMaterial(c) return c:IsSetCard(0x20dc) and c:IsType(TYPE_XYZ) and mc:IsCanBeXyzMaterial(c)
and c:IsCanBeSpecialSummoned(e,SUMMON_TYPE_XYZ,tp,false,false) and Duel.GetLocationCountFromEx(tp,tp,mc,c)>0 and c:IsCanBeSpecialSummoned(e,SUMMON_TYPE_XYZ,tp,false,false) and Duel.GetLocationCountFromEx(tp,tp,mc,c)>0
end end
function s.mtfilter(c,e) function s.mtfilter(c,e)
...@@ -77,7 +77,7 @@ end ...@@ -77,7 +77,7 @@ end
function s.spop2(e,tp,eg,ep,ev,re,r,rp) function s.spop2(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not aux.MustMaterialCheck(c,tp,EFFECT_MUST_BE_XMATERIAL) then return end if not aux.MustMaterialCheck(c,tp,EFFECT_MUST_BE_XMATERIAL) then return end
if c:IsFaceup() and c:IsRelateToEffect(e) and not c:IsImmuneToEffect(e) then if c:IsFaceup() and c:IsRelateToChain() and c:IsControler(tp) and not c:IsImmuneToEffect(e) then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g=Duel.SelectMatchingCard(tp,s.spfilter,tp,LOCATION_EXTRA,0,1,1,nil,e,tp,c) local g=Duel.SelectMatchingCard(tp,s.spfilter,tp,LOCATION_EXTRA,0,1,1,nil,e,tp,c)
local sc=g:GetFirst() local sc=g:GetFirst()
......
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