Commit 281c4035 authored by salix5's avatar salix5

Merge pull request #423 from mercury233/patch-3

fix 天帝アイテール
parents 40925d41 cc22b4ee
...@@ -118,12 +118,21 @@ function c96570609.sumcost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -118,12 +118,21 @@ function c96570609.sumcost(e,tp,eg,ep,ev,re,r,rp,chk)
c:RegisterFlagEffect(96570609,RESET_CHAIN,0,1) c:RegisterFlagEffect(96570609,RESET_CHAIN,0,1)
end end
function c96570609.sumtg(e,tp,eg,ep,ev,re,r,rp,chk) function c96570609.sumtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsSummonable(true,nil,1) end local c=e:GetHandler()
Duel.SetOperationInfo(0,CATEGORY_SUMMON,e:GetHandler(),1,0,0) if chk==0 then return c:IsSummonable(true,nil,1) or c:IsMSetable(true,nil,1) end
Duel.SetOperationInfo(0,CATEGORY_SUMMON,c,1,0,0)
end end
function c96570609.sumop(e,tp,eg,ep,ev,re,r,rp) function c96570609.sumop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if c:IsRelateToEffect(e) and c:IsSummonable(true,nil,1) then if not c:IsRelateToEffect(e) then return end
Duel.Summon(tp,c,true,nil,1) local sel=0
if c:IsSummonable(true,nil,1) and c:IsMSetable(true,nil,1) then
sel=Duel.SelectOption(tp,1151,1153)+1
elseif c:IsSummonable(true,nil,1) then
sel=Duel.SelectOption(tp,1151)+1
elseif c:IsMSetable(true,nil,1) then
sel=Duel.SelectOption(tp,1153)+2
end end
if sel==1 then Duel.Summon(tp,c,true,nil,1) end
if sel==2 then Duel.MSet(tp,c,true,nil,1) end
end end
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