Commit 7c6f609a authored by nanahira's avatar nanahira

update

parent 9268c5b6
......@@ -44,6 +44,7 @@ function cm.spcon(e,c)
local tp=c:GetControler()
return Duel.GetMZoneCount(tp)>0
and Duel.IsExistingMatchingCard(cm.spfilter,tp,LOCATION_HAND,0,3,nil)
and not Duel.IsExistingMatchingCard(nil,tp,LOCATION_MZONE,0,1,nil)
end
function cm.spop(e,tp,eg,ep,ev,re,r,rp,c)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
......
......@@ -2416,11 +2416,11 @@ function cm.TransformDFCCard(c)
c:SetEntityCode(tcode,true)
c:ReplaceEffect(tcode,0,0)
Duel.SetMetatable(c,_G["c"..tcode])
Duel.Hint(HINT_CARD,0,tcode)
Duel.ConfirmCards(c:GetControler(),Group.FromCards(c))
if c:IsLocation(LOCATION_DECK) then
Duel.ConfirmCards(1-c:GetControler(),Group.FromCards(c))
end
--Duel.Hint(HINT_CARD,0,tcode)
--Duel.ConfirmCards(c:GetControler(),Group.FromCards(c))
--if c:IsLocation(LOCATION_DECK) then
-- Duel.ConfirmCards(1-c:GetControler(),Group.FromCards(c))
--end
return true
end
function cm.DFCBackSideCommonEffect(c)
......@@ -2438,10 +2438,10 @@ function cm.DFCBackSideCommonEffect(c)
local tcode=c.dfc_back_side
if not tcode then return end
c:SetEntityCode(tcode)
Duel.ConfirmCards(tp,Group.FromCards(c))
if c:IsLocation(LOCATION_DECK) then
Duel.ConfirmCards(1-tp,Group.FromCards(c))
end
-- Duel.ConfirmCards(tp,Group.FromCards(c))
-- if c:IsLocation(LOCATION_DECK) then
-- Duel.ConfirmCards(1-tp,Group.FromCards(c))
-- end
c:ReplaceEffect(tcode,0,0)
Duel.SetMetatable(c,_G["c"..tcode])
end)
......
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