Commit 658c268b authored by TanakaKotoha's avatar TanakaKotoha

fix

parent b3789c3f
...@@ -33,15 +33,17 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -33,15 +33,17 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp)
if Duel.NegateActivation(ev) and ec:IsRelateToEffect(re) then if Duel.NegateActivation(ev) and ec:IsRelateToEffect(re) then
if Duel.Remove(eg,POS_FACEUP,REASON_EFFECT)~=0 then if Duel.Remove(eg,POS_FACEUP,REASON_EFFECT)~=0 then
local g=Duel.GetMatchingGroup(cm.desfilter,tp,0,LOCATION_ONFIELD,aux.ExceptThisCard(e)) local g=Duel.GetMatchingGroup(cm.desfilter,tp,0,LOCATION_ONFIELD,aux.ExceptThisCard(e))
if #g>0 and Duel.IsExistingMatchingCard(cm.thfilter,tp,LOCATION_DECK,0,1,nil) then
local g1=Duel.SelectMatchingCard(tp,aux.NecroValleyFilter(cm.thfilter),tp,LOCATION_DECK,0,1,1,nil) local g1=Duel.SelectMatchingCard(tp,aux.NecroValleyFilter(cm.thfilter),tp,LOCATION_DECK,0,1,1,nil)
if #g>0 and Duel.SelectYesNo(tp,aux.Stringid(m,1)) and #g1>0 then
Duel.BreakEffect()
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
if #g1>0 then
Duel.BreakEffect()
Duel.SendtoHand(g1,nil,REASON_EFFECT) Duel.SendtoHand(g1,nil,REASON_EFFECT)
Duel.ConfirmCards(1-tp,g1) Duel.ConfirmCards(1-tp,g1)
end end
end end
end end
end
end end
function cm.desfilter(c) function cm.desfilter(c)
return c:IsType(TYPE_MONSTER) and c:IsSetCard(0xa85) return c:IsType(TYPE_MONSTER) and c:IsSetCard(0xa85)
......
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