Commit 4c4a5197 authored by mercury233's avatar mercury233

fix

parent a2cf748a
...@@ -18,7 +18,8 @@ function c691925.cost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -18,7 +18,8 @@ function c691925.cost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.DiscardHand(tp,c691925.costfilter,1,1,REASON_COST+REASON_DISCARD,nil) Duel.DiscardHand(tp,c691925.costfilter,1,1,REASON_COST+REASON_DISCARD,nil)
end end
function c691925.target(e,tp,eg,ep,ev,re,r,rp,chk) function c691925.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsPlayerCanDraw(tp,4) and Duel.IsPlayerCanDiscardDeck(tp,2) end if chk==0 then return Duel.IsPlayerCanDraw(tp,2) and Duel.IsPlayerCanDiscardDeck(tp,2)
and Duel.GetFieldGroupCount(tp,LOCATION_DECK,0)>=4 end
Duel.SetTargetPlayer(tp) Duel.SetTargetPlayer(tp)
Duel.SetTargetParam(2) Duel.SetTargetParam(2)
Duel.SetOperationInfo(0,CATEGORY_DRAW,nil,0,tp,2) Duel.SetOperationInfo(0,CATEGORY_DRAW,nil,0,tp,2)
......
...@@ -18,6 +18,7 @@ function c82639107.filter(c) ...@@ -18,6 +18,7 @@ function c82639107.filter(c)
end end
function c82639107.target(e,tp,eg,ep,ev,re,r,rp,chk) function c82639107.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsPlayerCanDraw(tp,2) if chk==0 then return Duel.IsPlayerCanDraw(tp,2)
and Duel.GetFieldGroupCount(tp,LOCATION_DECK,0)>=3
and Duel.IsExistingMatchingCard(c82639107.filter,tp,LOCATION_HAND,0,1,nil) and Duel.IsExistingMatchingCard(c82639107.filter,tp,LOCATION_HAND,0,1,nil)
and Duel.IsExistingMatchingCard(c82639107.filter,tp,LOCATION_DECK,0,1,nil) end and Duel.IsExistingMatchingCard(c82639107.filter,tp,LOCATION_DECK,0,1,nil) end
Duel.SetOperationInfo(0,CATEGORY_DRAW,nil,0,tp,2) Duel.SetOperationInfo(0,CATEGORY_DRAW,nil,0,tp,2)
......
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