Commit 8d8e68b5 authored by POLYMER's avatar POLYMER

fix

parent 7ce7fedb
......@@ -12,7 +12,7 @@ function cm.initial_effect(c)
c:RegisterEffect(e1)
end
function cm.filter(c,e,tp)
return c:IsCanBeSpecialSummoned(e,0,tp,true,false) and Duel.GetLocationCountFromEx(1-tp,1-tp,nil,c)>0
return c:IsCanBeSpecialSummoned(e,0,tp,true,false) and Duel.GetLocationCountFromEx(tp,tp,nil,c)>0
end
function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsPlayerCanDraw(tp,2) and Duel.IsExistingMatchingCard(cm.filter,1-tp,LOCATION_EXTRA,0,1,nil,e,1-tp) end
......
......@@ -19,13 +19,13 @@ end
function c79029510.activate(e,tp,eg,ep,ev,re,r,rp)
local p=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER)
local opt=0
local g=Duel.GetFieldGroup(p,LOCATION_HAND,0):Filter(c79029510.filter,nil)
local g=Duel.GetFieldGroup(p,0,LOCATION_HAND):Filter(c79029510.filter,nil)
if Duel.IsExistingMatchingCard(Card.IsCode,tp,LOCATION_HAND,0,1,nil,89252157)
and Duel.IsExistingMatchingCard(Card.IsCode,tp,LOCATION_HAND,0,1,nil,97574404)
and Duel.IsExistingMatchingCard(Card.IsCode,tp,LOCATION_HAND,0,1,nil,99030164)
and Duel.IsExistingMatchingCard(Card.IsCode,tp,LOCATION_HAND,0,1,nil,57935140)
and Duel.SelectYesNo(tp,aux.Stringid(79029510,2)) then
Duel.ConfirmCards(1-p,g)
Duel.ConfirmCards(p,g)
opt=1
end
if opt==0 then
......
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