Skip to content

Commit 8dd8758

Browse files
committed
fixed Exchange of the Meeeg
Made drawing a card optional
1 parent 3a2f2b5 commit 8dd8758

1 file changed

Lines changed: 10 additions & 8 deletions

File tree

rush/c160216030.lua

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,15 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
2929
Duel.SendtoDeck(g,nil,SEQ_DECKSHUFFLE,REASON_EFFECT)
3030
Duel.ShuffleDeck(tp)
3131
Duel.ShuffleDeck(1-tp)
32-
local ct=Duel.Draw(tp,1,REASON_EFFECT)
33-
if ct==0 then return end
34-
local tc=Duel.GetOperatedGroup():GetFirst()
35-
Duel.ConfirmCards(1-tp,tc)
36-
if tc:IsMonster() and tc:IsLevelAbove(7) and tc:IsRace(RACE_BEAST) and Duel.GetLocationCount(tp,LOCATION_MZONE)>0
37-
and tc:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP) and Duel.SelectYesNo(tp,aux.Stringid(id,1)) then
38-
Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP)
32+
if Duel.IsPlayerCanDraw(tp,1) and Duel.SelectYesNo(tp,aux.Stringid(id,1)) then
33+
local ct=Duel.Draw(tp,1,REASON_EFFECT)
34+
if ct==0 then return end
35+
local tc=Duel.GetOperatedGroup():GetFirst()
36+
Duel.ConfirmCards(1-tp,tc)
37+
if tc:IsMonster() and tc:IsLevelAbove(7) and tc:IsRace(RACE_BEAST) and Duel.GetLocationCount(tp,LOCATION_MZONE)>0
38+
and tc:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP) and Duel.SelectYesNo(tp,aux.Stringid(id,2)) then
39+
Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP)
40+
end
41+
Duel.ShuffleHand(tp)
3942
end
40-
Duel.ShuffleHand(tp)
4143
end

0 commit comments

Comments
 (0)