Commit 419595c7 authored by wind2009's avatar wind2009

Fix スレット・アームド・ドラゴン

parent f25c4c51
Pipeline #40770 passed with stages
in 3 minutes and 25 seconds
No preview for this file type
No preview for this file type
...@@ -8,6 +8,7 @@ ...@@ -8,6 +8,7 @@
101303017 101303017
101303018 101303018
101303019 101303019
101303028
101303031 101303031
101303204 101303204
101303036 101303036
......
--スレット·アームド·ドラゴン --スレット・アームド・ドラゴン
local s,id,o=GetID() local s,id,o=GetID()
function s.initial_effect(c) function s.initial_effect(c)
--spsummon --spsummon
...@@ -58,13 +58,13 @@ end ...@@ -58,13 +58,13 @@ end
function s.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function s.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) if chkc then return chkc:IsLocation(LOCATION_MZONE)
and s.desfilter2(chkc) end and s.desfilter2(chkc) end
if chk==0 then return Duel.IsExistingTarget(s.desfilter2,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil,SUMMON_TYPE_SPECIAL) end if chk==0 then return Duel.IsExistingTarget(s.desfilter2,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY)
local g=Duel.SelectTarget(tp,s.desfilter2,tp,LOCATION_MZONE,LOCATION_MZONE,1,1,nil,SUMMON_TYPE_SPECIAL) local g=Duel.SelectTarget(tp,s.desfilter2,tp,LOCATION_MZONE,LOCATION_MZONE,1,1,nil)
Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,1,0,0) Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,1,0,0)
end end
function s.spfilter(c,e,tp,tc) function s.spfilter(c,e,tp,tc)
return c:IsRace(RACE_DRAGON) and c:IsLevel(tc:GetOriginalLevel()+2) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsRace(RACE_DRAGON) and c:GetOriginalLevel()==tc:GetOriginalLevel()+2 and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end end
function s.desop(e,tp,eg,ep,ev,re,r,rp) function s.desop(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget() local tc=Duel.GetFirstTarget()
......
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