Commit d92de2ed authored by Tachibana's avatar Tachibana

eme

parent 12301ce4
...@@ -65,7 +65,8 @@ function cm.clear(e,tp,eg,ep,ev,re,r,rp) ...@@ -65,7 +65,8 @@ function cm.clear(e,tp,eg,ep,ev,re,r,rp)
end end
function cm.spcon(e,c) function cm.spcon(e,c)
if c==nil then return true end if c==nil then return true end
return #Monster_Friend_Time>2 local tp=c:GetControler()
return #Monster_Friend_Time>2 and Duel.GetLocationCount(tp,LOCATION_MZONE)>0
end end
function cm.potg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function cm.potg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chk==0 then return true end if chk==0 then return true end
......
...@@ -65,7 +65,8 @@ function cm.clear(e,tp,eg,ep,ev,re,r,rp) ...@@ -65,7 +65,8 @@ function cm.clear(e,tp,eg,ep,ev,re,r,rp)
end end
function cm.spcon(e,c) function cm.spcon(e,c)
if c==nil then return true end if c==nil then return true end
return #Monster_Friend_Time>2 local tp=c:GetControler()
return #Monster_Friend_Time>2 and Duel.GetLocationCount(tp,LOCATION_MZONE)>0
end end
function cm.potg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function cm.potg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chk==0 then return true end if chk==0 then return true end
...@@ -78,14 +79,14 @@ function cm.poop(e,tp,eg,ep,ev,re,r,rp) ...@@ -78,14 +79,14 @@ function cm.poop(e,tp,eg,ep,ev,re,r,rp)
if c:IsFaceup() and c:IsRelateToEffect(e) then if c:IsFaceup() and c:IsRelateToEffect(e) then
if #Monster_Friend_Time>2 then if #Monster_Friend_Time>2 then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SET) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SET)
local sg=Duel.SelectMatchingCard(cm.setcheck,tp,LOCATION_DECK,0,1,1,nil) local sg=Duel.SelectMatchingCard(tp,cm.setcheck,tp,LOCATION_DECK,0,1,1,nil)
Duel.SSet(tp,sg) Duel.SSet(tp,sg)
end end
if #Monster_Friend_Time>4 then if #Monster_Friend_Time>4 then
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(m,1)) e1:SetDescription(aux.Stringid(m,1))
e1:SetType(EFFECT_TYPE_IGNITION) e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetRange(LOCATION_FZONE) e1:SetRange(LOCATION_MZONE)
e1:SetCountLimit(1) e1:SetCountLimit(1)
e1:SetCost(cm.cpcost) e1:SetCost(cm.cpcost)
e1:SetTarget(cm.cptg) e1:SetTarget(cm.cptg)
......
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