Commit d978e480 authored by DailyShana's avatar DailyShana

fix

parent 86aeb67c
...@@ -37,7 +37,7 @@ end ...@@ -37,7 +37,7 @@ end
function c90951921.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c90951921.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c90951921.filter(chkc) end if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c90951921.filter(chkc) end
if chk==0 then if chk==0 then
if Duel.GetFieldGroupCount(tp,LOCATION_DECK,0)<3 if not Duel.IsPlayerCanDiscardDeck(tp,2)
or not Duel.IsExistingTarget(c90951921.filter,tp,LOCATION_GRAVE,0,1,nil) then return false end or not Duel.IsExistingTarget(c90951921.filter,tp,LOCATION_GRAVE,0,1,nil) then return false end
local g=Duel.GetDecktopGroup(tp,2) local g=Duel.GetDecktopGroup(tp,2)
return g:FilterCount(Card.IsAbleToHand,nil)>0 return g:FilterCount(Card.IsAbleToHand,nil)>0
...@@ -49,7 +49,7 @@ function c90951921.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) ...@@ -49,7 +49,7 @@ function c90951921.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
end end
function c90951921.activate(e,tp,eg,ep,ev,re,r,rp) function c90951921.activate(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget() local tc=Duel.GetFirstTarget()
if tc:IsRelateToEffect(e) and Duel.Remove(tc,POS_FACEUP,REASON_EFFECT)~=0 then if tc:IsRelateToEffect(e) and Duel.Remove(tc,POS_FACEUP,REASON_EFFECT)~=0 and Duel.IsPlayerCanDiscardDeck(tp,2) then
Duel.BreakEffect() Duel.BreakEffect()
local g=Duel.GetDecktopGroup(tp,2) local g=Duel.GetDecktopGroup(tp,2)
Duel.ConfirmCards(tp,g) Duel.ConfirmCards(tp,g)
......
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