Commit 5d73c006 authored by Huangnan's avatar Huangnan

fix

parent fddb2b4a
Pipeline #30154 passed with stages
in 39 minutes and 27 seconds
......@@ -51,15 +51,15 @@ end
function cm.operation(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_CONFIRM)
local g1=Duel.SelectMatchingCard(tp,cm.filter1,tp,LOCATION_HAND,0,1,1,nil,tp)
local fc=g1:GetFirst()
if g1:GetCount()==0 then return end
Duel.ConfirmCards(1-tp,g1)
Duel.ShuffleHand(tp)
Duel.Hint(HINT_SELECTMSG,1-tp,aux.Stringid(m,1))
local g2=Duel.GetFieldGroup(tp,LOCATION_HAND,0):Select(1-tp,1,1,nil)
local g3=g1:Filter(Card.IsCode,nil,g1:GetFirst():GetCode())
local tc=g2:GetFirst()
local sg=Duel.ConfirmCards(tp,tc)
if tc==g1:GetFirst() or tc==g3:GetFirst() then
if tc:GetCode()==fc:GetCode() then
Duel.Remove(tc,POS_FACEDOWN,REASON_EFFECT)
else
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
......
......@@ -31,6 +31,7 @@ function s.initial_effect(c)
e2:SetCode(EFFECT_CANNOT_SELECT_BATTLE_TARGET)
e2:SetRange(LOCATION_FZONE)
e2:SetTargetRange(0,LOCATION_MZONE)
e2:SetCondition(s.con)
e2:SetValue(s.atlimit)
c:RegisterEffect(e2)
end
......@@ -57,6 +58,12 @@ function s.efilter(e,re)
return re:GetOwnerPlayer()~=e:GetHandlerPlayer()
end
--
function s.cfilter(c)
return c:IsCode(33401527,33401528,33401529) and c:IsFaceup()
end
function s.con(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsExistingMatchingCard(s.cfilter,e:GetHandlerPlayer(),LOCATION_MZONE,0,1,nil)
end
function s.atlimit(e,c)
return c:IsFacedown() or not c:IsCode(33401527,33401528,33401529)
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