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)
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
and (b1 or b2) end
local opt=0
if b1 and b2 then
local 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)
opt=Duel.SelectOption(tp,aux.Stringid(40390147,1),aux.Stringid(40390147,2))
elseif b1 then
Duel.SelectOption(tp,aux.Stringid(40390147,1))
e:GetHandler():RemoveOverlayCard(tp,1,1,REASON_COST)
e:SetLabel(0)
opt=Duel.SelectOption(tp,aux.Stringid(40390147,1))
else
Duel.SelectOption(tp,aux.Stringid(40390147,2))
e:GetHandler():RemoveOverlayCard(tp,2,2,REASON_COST)
e:SetLabel(1)
opt=Duel.SelectOption(tp,aux.Stringid(40390147,2))+1
end
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
function c40390147.spop(e,tp,eg,ep,ev,re,r,rp)
......
......@@ -10,6 +10,7 @@ function c49838105.initial_effect(c)
--attack
local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(49838105,0))
e2:SetCategory(CATEGORY_DECKDES)
e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
e2:SetCode(EVENT_ATTACK_ANNOUNCE)
e2:SetRange(LOCATION_SZONE)
......@@ -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.IsPlayerCanDiscardDeck(tp,1) and Duel.SelectYesNo(tp,94) then
e:SetLabel(1)
else e:SetLabel(0) end
e:SetCategory(CATEGORY_DECKDES)
else
e:SetLabel(0)
e:SetCategory(0)
end
end
function c49838105.target2(e,tp,eg,ep,ev,re,r,rp,chk)
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)
con10=Duel.GetFieldGroupCount(tp,LOCATION_HAND,LOCATION_HAND)>0
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
function c82734805.op(e,tp,eg,ep,ev,re,r,rp)
local ct=e:GetLabel()
......
......@@ -23,6 +23,11 @@ function c89642993.eftg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
local op=Duel.SelectOption(tp,aux.Stringid(89642993,1),aux.Stringid(89642993,2))
e:SetLabel(op)
if op==0 then
e:SetCategory(CATEGORY_DRAW)
else
e:SetCategory(CATEGORY_RECOVER)
end
end
function c89642993.efop(e,tp,eg,ep,ev,re,r,rp)
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