Commit 3b913937 authored by mercury233's avatar mercury233 Committed by DailyShana

fix

parent 2fcfdf8a
...@@ -22,18 +22,20 @@ function c40390147.sptg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -22,18 +22,20 @@ function c40390147.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
local b2=Duel.IsExistingMatchingCard(c40390147.spfilter,tp,LOCATION_DECK,0,1,nil,e,tp) and e:GetHandler():CheckRemoveOverlayCard(tp,2,REASON_COST) local b2=Duel.IsExistingMatchingCard(c40390147.spfilter,tp,LOCATION_DECK,0,1,nil,e,tp) and e:GetHandler():CheckRemoveOverlayCard(tp,2,REASON_COST)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and (b1 or b2) end and (b1 or b2) end
local opt=0
if b1 and b2 then if b1 and b2 then
local opt=Duel.SelectOption(tp,aux.Stringid(40390147,1),aux.Stringid(40390147,2)) opt=Duel.SelectOption(tp,aux.Stringid(40390147,1),aux.Stringid(40390147,2))
e:SetLabel(opt)
e:GetHandler():RemoveOverlayCard(tp,opt+1,opt+1,REASON_COST)
elseif b1 then elseif b1 then
Duel.SelectOption(tp,aux.Stringid(40390147,1)) opt=Duel.SelectOption(tp,aux.Stringid(40390147,1))
e:GetHandler():RemoveOverlayCard(tp,1,1,REASON_COST)
e:SetLabel(0)
else else
Duel.SelectOption(tp,aux.Stringid(40390147,2)) opt=Duel.SelectOption(tp,aux.Stringid(40390147,2))+1
e:GetHandler():RemoveOverlayCard(tp,2,2,REASON_COST) end
e:SetLabel(1) e:SetLabel(opt)
e:GetHandler():RemoveOverlayCard(tp,opt+1,opt+1,REASON_COST)
if opt==0 then
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND)
else
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_DECK)
end end
end end
function c40390147.spop(e,tp,eg,ep,ev,re,r,rp) function c40390147.spop(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -10,6 +10,7 @@ function c49838105.initial_effect(c) ...@@ -10,6 +10,7 @@ function c49838105.initial_effect(c)
--attack --attack
local e2=Effect.CreateEffect(c) local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(49838105,0)) e2:SetDescription(aux.Stringid(49838105,0))
e2:SetCategory(CATEGORY_DECKDES)
e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
e2:SetCode(EVENT_ATTACK_ANNOUNCE) e2:SetCode(EVENT_ATTACK_ANNOUNCE)
e2:SetRange(LOCATION_SZONE) e2:SetRange(LOCATION_SZONE)
...@@ -39,7 +40,11 @@ function c49838105.target1(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -39,7 +40,11 @@ function c49838105.target1(e,tp,eg,ep,ev,re,r,rp,chk)
and Duel.GetAttacker():IsControler(1-tp) and Duel.GetAttackTarget()==nil and Duel.GetAttacker():IsControler(1-tp) and Duel.GetAttackTarget()==nil
and Duel.IsPlayerCanDiscardDeck(tp,1) and Duel.SelectYesNo(tp,94) then and Duel.IsPlayerCanDiscardDeck(tp,1) and Duel.SelectYesNo(tp,94) then
e:SetLabel(1) e:SetLabel(1)
else e:SetLabel(0) end e:SetCategory(CATEGORY_DECKDES)
else
e:SetLabel(0)
e:SetCategory(0)
end
end end
function c49838105.target2(e,tp,eg,ep,ev,re,r,rp,chk) function c49838105.target2(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsPlayerCanDiscardDeck(tp,1) end if chk==0 then return Duel.IsPlayerCanDiscardDeck(tp,1) end
......
...@@ -53,6 +53,11 @@ function c82734805.tg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -53,6 +53,11 @@ function c82734805.tg(e,tp,eg,ep,ev,re,r,rp,chk)
con10=Duel.GetFieldGroupCount(tp,LOCATION_HAND,LOCATION_HAND)>0 con10=Duel.GetFieldGroupCount(tp,LOCATION_HAND,LOCATION_HAND)>0
end end
if chk==0 then return con3 or con5 or con8 or con10 end if chk==0 then return con3 or con5 or con8 or con10 end
local cat=0
if ct>=3 or ct>=8 then cat=cat+CATEGORY_TOGRAVE end
if ct>=5 then cat=cat+CATEGORY_DECKDES end
if ct>=10 then cat=cat+CATEGORY_HANDES end
e:SetCategory(cat)
end end
function c82734805.op(e,tp,eg,ep,ev,re,r,rp) function c82734805.op(e,tp,eg,ep,ev,re,r,rp)
local ct=e:GetLabel() local ct=e:GetLabel()
......
...@@ -23,6 +23,11 @@ function c89642993.eftg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -23,6 +23,11 @@ function c89642993.eftg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end if chk==0 then return true end
local op=Duel.SelectOption(tp,aux.Stringid(89642993,1),aux.Stringid(89642993,2)) local op=Duel.SelectOption(tp,aux.Stringid(89642993,1),aux.Stringid(89642993,2))
e:SetLabel(op) e:SetLabel(op)
if op==0 then
e:SetCategory(CATEGORY_DRAW)
else
e:SetCategory(CATEGORY_RECOVER)
end
end end
function c89642993.efop(e,tp,eg,ep,ev,re,r,rp) function c89642993.efop(e,tp,eg,ep,ev,re,r,rp)
if e:GetLabel()==0 then if e:GetLabel()==0 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