Commit ab45162a authored by mercury233's avatar mercury233

fix

parent 92935c8a
...@@ -54,7 +54,8 @@ function c100203029.costfilter(c,tp,g) ...@@ -54,7 +54,8 @@ function c100203029.costfilter(c,tp,g)
and Duel.IsExistingMatchingCard(c100203029.desfilter,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,c,Group.FromCards(c)) and Duel.IsExistingMatchingCard(c100203029.desfilter,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,c,Group.FromCards(c))
end end
function c100203029.desfilter(c,g) function c100203029.desfilter(c,g)
return not g:IsContains(c:GetEquipTarget()) local ec=c:GetEquipTarget()
return not ec or not g:IsContains(ec)
end end
function c100203029.fselect(g,tp) function c100203029.fselect(g,tp)
if Duel.IsExistingMatchingCard(c100203029.desfilter,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,g:GetCount(),g,g) then if Duel.IsExistingMatchingCard(c100203029.desfilter,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,g:GetCount(),g,g) then
......
...@@ -59,6 +59,7 @@ end ...@@ -59,6 +59,7 @@ end
function c101009061.lvop(e,tp,eg,ep,ev,re,r,rp) function c101009061.lvop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_CONFIRM) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_CONFIRM)
local g=Duel.SelectMatchingCard(tp,c101009061.cffilter,tp,LOCATION_HAND,0,1,1,nil) local g=Duel.SelectMatchingCard(tp,c101009061.cffilter,tp,LOCATION_HAND,0,1,1,nil)
if #g>0 then
Duel.ConfirmCards(1-tp,g) Duel.ConfirmCards(1-tp,g)
Duel.ShuffleHand(tp) Duel.ShuffleHand(tp)
local sg=Duel.GetMatchingGroup(Card.IsCode,tp,LOCATION_HAND,0,nil,g:GetFirst():GetCode()) local sg=Duel.GetMatchingGroup(Card.IsCode,tp,LOCATION_HAND,0,nil,g:GetFirst():GetCode())
...@@ -72,4 +73,5 @@ function c101009061.lvop(e,tp,eg,ep,ev,re,r,rp) ...@@ -72,4 +73,5 @@ function c101009061.lvop(e,tp,eg,ep,ev,re,r,rp)
tc:RegisterEffect(e1) tc:RegisterEffect(e1)
tc=sg:GetNext() tc=sg:GetNext()
end end
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