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,17 +59,19 @@ end ...@@ -59,17 +59,19 @@ 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)
Duel.ConfirmCards(1-tp,g) if #g>0 then
Duel.ShuffleHand(tp) Duel.ConfirmCards(1-tp,g)
local sg=Duel.GetMatchingGroup(Card.IsCode,tp,LOCATION_HAND,0,nil,g:GetFirst():GetCode()) Duel.ShuffleHand(tp)
local tc=sg:GetFirst() local sg=Duel.GetMatchingGroup(Card.IsCode,tp,LOCATION_HAND,0,nil,g:GetFirst():GetCode())
while tc do local tc=sg:GetFirst()
local e1=Effect.CreateEffect(e:GetHandler()) while tc do
e1:SetType(EFFECT_TYPE_SINGLE) local e1=Effect.CreateEffect(e:GetHandler())
e1:SetCode(EFFECT_UPDATE_LEVEL) e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetValue(-1) e1:SetCode(EFFECT_UPDATE_LEVEL)
e1:SetReset(RESET_EVENT+RESETS_STANDARD-RESET_TOFIELD+RESET_PHASE+PHASE_END) e1:SetValue(-1)
tc:RegisterEffect(e1) e1:SetReset(RESET_EVENT+RESETS_STANDARD-RESET_TOFIELD+RESET_PHASE+PHASE_END)
tc=sg:GetNext() tc:RegisterEffect(e1)
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