Commit 02d1e1ca authored by Tachibana's avatar Tachibana

eme

parent f042ca2e
...@@ -47,7 +47,7 @@ function cm.regop(e,tp) ...@@ -47,7 +47,7 @@ function cm.regop(e,tp)
if g:GetCount()>0 then if g:GetCount()>0 then
Duel.ConfirmCards(1-tp,g) Duel.ConfirmCards(1-tp,g)
Duel.ConfirmCards(tp,g) Duel.ConfirmCards(tp,g)
if g:GetClassCount(Card.IsCode,nil)==g:GetCount() then if g:GetClassCount(Card.GetCode,nil)==g:GetCount() then
if g1:GetCount()==0 and g:Filter(cm.tgfilter,nil):GetClassCount(Card.GetCode,nil)>=7 then if g1:GetCount()==0 and g:Filter(cm.tgfilter,nil):GetClassCount(Card.GetCode,nil)>=7 then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
local sg=g:SelectSubGroup(tp,cm.thfilter,true,7,7) local sg=g:SelectSubGroup(tp,cm.thfilter,true,7,7)
......
...@@ -82,6 +82,7 @@ function cm.poop(e,tp,eg,ep,ev,re,r,rp) ...@@ -82,6 +82,7 @@ function cm.poop(e,tp,eg,ep,ev,re,r,rp)
e2:SetRange(LOCATION_MZONE) e2:SetRange(LOCATION_MZONE)
e2:SetTargetRange(1,0) e2:SetTargetRange(1,0)
e2:SetValue(cm.val) e2:SetValue(cm.val)
e2:SetReset(RESET_EVENT+RESETS_STANDARD)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
if #Monster_Friend_Time>6 then if #Monster_Friend_Time>6 then
...@@ -91,6 +92,7 @@ function cm.poop(e,tp,eg,ep,ev,re,r,rp) ...@@ -91,6 +92,7 @@ function cm.poop(e,tp,eg,ep,ev,re,r,rp)
e3:SetRange(LOCATION_MZONE) e3:SetRange(LOCATION_MZONE)
e3:SetCode(EFFECT_INDESTRUCTABLE_BATTLE) e3:SetCode(EFFECT_INDESTRUCTABLE_BATTLE)
e3:SetValue(1) e3:SetValue(1)
e3:SetReset(RESET_EVENT+RESETS_STANDARD)
c:RegisterEffect(e3) c:RegisterEffect(e3)
local e4=e3:Clone() local e4=e3:Clone()
e4:SetCode(EFFECT_INDESTRUCTABLE_EFFECT) e4:SetCode(EFFECT_INDESTRUCTABLE_EFFECT)
...@@ -101,13 +103,14 @@ function cm.poop(e,tp,eg,ep,ev,re,r,rp) ...@@ -101,13 +103,14 @@ function cm.poop(e,tp,eg,ep,ev,re,r,rp)
e5:SetDescription(aux.Stringid(m,1)) e5:SetDescription(aux.Stringid(m,1))
e5:SetCategory(CATEGORY_TOGRAVE) e5:SetCategory(CATEGORY_TOGRAVE)
e5:SetType(EFFECT_TYPE_IGNITION) e5:SetType(EFFECT_TYPE_IGNITION)
e4:SetCode(EVENT_FREE_CHAIN) e5:SetCode(EVENT_FREE_CHAIN)
e4:SetProperty(EFFECT_FLAG_CARD_TARGET) e5:SetProperty(EFFECT_FLAG_CARD_TARGET)
e4:SetRange(LOCATION_MZONE) e5:SetRange(LOCATION_MZONE)
e4:SetCountLimit(1) e5:SetCountLimit(1)
e4:SetTarget(cm.tgtg) e5:SetTarget(cm.tgtg)
e4:SetOperation(cm.tgop) e5:SetOperation(cm.tgop)
c:RegisterEffect(e4) e5:SetReset(RESET_EVENT+RESETS_STANDARD)
c:RegisterEffect(e5)
end end
end end
end end
......
...@@ -91,6 +91,7 @@ function cm.poop(e,tp,eg,ep,ev,re,r,rp) ...@@ -91,6 +91,7 @@ function cm.poop(e,tp,eg,ep,ev,re,r,rp)
e1:SetCost(cm.cpcost) e1:SetCost(cm.cpcost)
e1:SetTarget(cm.cptg) e1:SetTarget(cm.cptg)
e1:SetOperation(cm.cpop) e1:SetOperation(cm.cpop)
e1:SetReset(RESET_EVENT+RESETS_STANDARD)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
if #Monster_Friend_Time>6 then if #Monster_Friend_Time>6 then
...@@ -102,6 +103,7 @@ function cm.poop(e,tp,eg,ep,ev,re,r,rp) ...@@ -102,6 +103,7 @@ function cm.poop(e,tp,eg,ep,ev,re,r,rp)
e1:SetCountLimit(1) e1:SetCountLimit(1)
e1:SetTarget(cm.drtg) e1:SetTarget(cm.drtg)
e1:SetOperation(cm.drop) e1:SetOperation(cm.drop)
e1:SetReset(RESET_EVENT+RESETS_STANDARD)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
end 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