Commit 96622fea authored by Amiya's avatar Amiya

修复

parent 0cce6ef3
Pipeline #43685 passed with stages
in 1 minute and 44 seconds
...@@ -11,13 +11,13 @@ function s.initial_effect(c) ...@@ -11,13 +11,13 @@ function s.initial_effect(c)
e1:SetOperation(s.activate) e1:SetOperation(s.activate)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function s.tdfilter(c,e,tp,res) function s.tdfilter(c)
return c:IsRace(RACE_DRAGON) and c:IsAbleToDeck() return c:IsRace(RACE_DRAGON) and c:IsAbleToDeck()
end end
function s.thfilter(c) function s.thfilter(c)
return c:IsType(TYPE_FIELD) and c:IsAbleToHand() return c:IsType(TYPE_FIELD) and c:IsAbleToHand()
end end
function s.tdfilter2(c,e,tp,res) function s.tdfilter2(c)
return c:IsType(TYPE_MONSTER) and c:IsAbleToDeck() return c:IsType(TYPE_MONSTER) and c:IsAbleToDeck()
end end
function s.target(e,tp,eg,ep,ev,re,r,rp,chk) function s.target(e,tp,eg,ep,ev,re,r,rp,chk)
...@@ -32,15 +32,14 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -32,15 +32,14 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return b1 or b2 end if chk==0 then return b1 or b2 end
local op=aux.SelectFromOptions(tp, local op=aux.SelectFromOptions(tp,
{b1,aux.Stringid(id,1),1}, {b1,aux.Stringid(id,1),1},
{b1,aux.Stringid(id,2),2}, {b2,aux.Stringid(id,2),2},
{b2,aux.Stringid(id,3),3}) {b3,aux.Stringid(id,3),3})
e:SetLabel(op) e:SetLabel(op)
if op==1 then if op==1 then
if e:IsCostChecked() then if e:IsCostChecked() then
e:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_TODECK+CATEGORY_DECKDES) e:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_TODECK+CATEGORY_DECKDES)
Duel.RegisterFlagEffect(tp,id,RESET_PHASE+PHASE_END,0,1) Duel.RegisterFlagEffect(tp,id,RESET_PHASE+PHASE_END,0,1)
end end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_DECK)
Duel.SetOperationInfo(0,CATEGORY_TODECK,nil,1,tp,LOCATION_GRAVE) Duel.SetOperationInfo(0,CATEGORY_TODECK,nil,1,tp,LOCATION_GRAVE)
elseif op==2 then elseif op==2 then
if e:IsCostChecked() then if e:IsCostChecked() then
...@@ -58,7 +57,7 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -58,7 +57,7 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk)
end end
end end
function s.spfilter(c,e,tp,code) function s.spfilter(c,e,tp,code)
return not c:IsCode(id) and c:IsSetCard(0x102) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return not c:IsCode(code) and c:IsSetCard(0x102) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end end
function s.activate(e,tp,eg,ep,ev,re,r,rp) function s.activate(e,tp,eg,ep,ev,re,r,rp)
if e:GetLabel()==1 then if e:GetLabel()==1 then
......
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