Commit db524cc7 authored by DailyShana's avatar DailyShana

fix

parent 96b64de0
......@@ -23,14 +23,13 @@ function c12152769.target(e,tp,eg,ep,ev,re,r,rp,chk)
end
function c12152769.operation(e,tp,eg,ep,ev,re,r,rp)
local hg=Duel.GetFieldGroup(1-tp,LOCATION_HAND,0)
if hg:GetCount()>0 and Duel.SelectYesNo(1-tp,aux.Stringid(12152769,1)) then
if Duel.IsChainDisablable(0) and hg:GetCount()>0
and Duel.SelectYesNo(1-tp,aux.Stringid(12152769,1)) then
Duel.Hint(HINT_SELECTMSG,1-tp,aux.Stringid(12152769,2))
local sg=hg:Select(1-tp,1,1,nil)
Duel.SendtoHand(sg,tp,REASON_EFFECT)
if Duel.IsChainDisablable(0) then
Duel.NegateEffect(0)
return
end
Duel.NegateEffect(0)
return
end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
local g=Duel.SelectMatchingCard(tp,c12152769.filter,tp,LOCATION_DECK,0,1,1,nil)
......
......@@ -23,6 +23,7 @@ function c21496848.operation(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetFieldGroupCount(tp,0,LOCATION_HAND)>0 and Duel.IsChainDisablable(0)
and Duel.SelectYesNo(1-tp,aux.Stringid(21496848,4)) then
Duel.DiscardHand(1-tp,aux.TRUE,1,1,REASON_EFFECT+REASON_DISCARD)
Duel.NegateEffect(0)
return
end
local ty=TYPE_MONSTER
......
......@@ -22,14 +22,12 @@ function c69402394.target(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SetOperationInfo(0,CATEGORY_DRAW,nil,0,PLAYER_ALL,2)
end
function c69402394.activate(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetFieldGroupCount(tp,LOCATION_HAND,0)<2 or Duel.GetFieldGroupCount(tp,0,LOCATION_HAND)<2 then return end
if Duel.SelectYesNo(1-tp,aux.Stringid(69402394,0)) then
if Duel.IsChainDisablable(0) and Duel.GetFieldGroupCount(1-tp,LOCATION_HAND,0)>0
and Duel.SelectYesNo(1-tp,aux.Stringid(69402394,0)) then
Duel.DiscardHand(1-tp,aux.TRUE,1,1,REASON_EFFECT+REASON_DISCARD,nil)
if Duel.IsChainDisablable(0) then
Duel.NegateEffect(0)
return
end
Duel.NegateEffect(0)
end
if Duel.GetFieldGroupCount(tp,LOCATION_HAND,0)<2 or Duel.GetFieldGroupCount(tp,0,LOCATION_HAND)<2 then return end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DISCARD)
local g1=Duel.SelectMatchingCard(tp,aux.TRUE,tp,LOCATION_HAND,0,2,2,nil)
Duel.Hint(HINT_SELECTMSG,1-tp,HINTMSG_DISCARD)
......
......@@ -34,12 +34,10 @@ function c80764541.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
end
end
function c80764541.desop(e,tp,eg,ep,ev,re,r,rp)
if Duel.CheckLPCost(1-tp,1000) and Duel.SelectYesNo(1-tp,aux.Stringid(80764541,1)) then
if Duel.IsChainDisablable(0) and Duel.CheckLPCost(1-tp,1000)
and Duel.SelectYesNo(1-tp,aux.Stringid(80764541,1)) then
Duel.PayLPCost(1-tp,1000)
if Duel.IsChainDisablable(0) then
Duel.NegateEffect(0)
return
end
Duel.NegateEffect(0)
end
local tc=Duel.GetFirstTarget()
if tc:IsFaceup() and tc:IsRelateToEffect(e) 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