Commit f733425d authored by 聖園ミカ's avatar 聖園ミカ 🐟

7

parent 45fe9546
...@@ -65,13 +65,14 @@ function cm.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -65,13 +65,14 @@ function cm.spop(e,tp,eg,ep,ev,re,r,rp)
if g:GetCount()>0 then if g:GetCount()>0 then
g:AddCard(c) g:AddCard(c)
if Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP)~=0 then if Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP)~=0 then
local og=eg:Filter(cm.cfilter,nil,1-tp):Filter(cm.ctofilter,nil,e) local og=eg:Filter(cm.cfilter,nil,1-tp):Filter(cm.ctofilter,nil,e)
if og:GetCount()>0 then if og:GetCount()>0 then
Duel.BreakEffect() Duel.BreakEffect()
local tc=og:GetFirst() local tc=og:GetFirst()
while tc do while tc do
tc:AddCounter(0x1ccc,1) tc:AddCounter(0x1ccc,1)
tc=og:GetNext() tc=og:GetNext()
end
end end
end end
end end
......
...@@ -27,8 +27,8 @@ function cm.initial_effect(c) ...@@ -27,8 +27,8 @@ function cm.initial_effect(c)
e3:SetHintTiming(0,TIMINGS_CHECK_MONSTER+TIMING_END_PHASE) e3:SetHintTiming(0,TIMINGS_CHECK_MONSTER+TIMING_END_PHASE)
e3:SetRange(LOCATION_MZONE) e3:SetRange(LOCATION_MZONE)
e3:SetCountLimit(1,m+900) e3:SetCountLimit(1,m+900)
e3:SetTarget(c50907446.distg) e3:SetTarget(cm.distg)
e3:SetOperation(c50907446.disop) e3:SetOperation(cm.disop)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
function cm.ffilter(c) function cm.ffilter(c)
...@@ -60,14 +60,14 @@ function cm.atkop(e,tp,eg,ep,ev,re,r,rp) ...@@ -60,14 +60,14 @@ function cm.atkop(e,tp,eg,ep,ev,re,r,rp)
c:RegisterEffect(e0) c:RegisterEffect(e0)
end end
end end
function c50907446.distg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function cm.distg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local c=e:GetHandler() local c=e:GetHandler()
if chkc then return chkc:IsOnField() and aux.NegateAnyFilter(chkc) and chkc~=c end if chkc then return chkc:IsOnField() and aux.NegateAnyFilter(chkc) and chkc~=c end
if chk==0 then return c:IsAttackAbove(1000) and Duel.IsExistingTarget(aux.NegateAnyFilter,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,c) end if chk==0 then return c:IsAttackAbove(1000) and Duel.IsExistingTarget(aux.NegateAnyFilter,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,c) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DISABLE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DISABLE)
Duel.SelectTarget(tp,aux.NegateAnyFilter,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,1,c) Duel.SelectTarget(tp,aux.NegateAnyFilter,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,1,c)
end end
function c50907446.disop(e,tp,eg,ep,ev,re,r,rp) function cm.disop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
local tc=Duel.GetFirstTarget() local tc=Duel.GetFirstTarget()
if c:IsFaceup() and c:IsRelateToEffect(e) and c:IsAttackAbove(1000) and tc:IsFaceup() and tc:IsRelateToEffect(e) and tc:IsCanBeDisabledByEffect(e,false) then if c:IsFaceup() and c:IsRelateToEffect(e) and c:IsAttackAbove(1000) and tc:IsFaceup() and tc:IsRelateToEffect(e) and tc:IsCanBeDisabledByEffect(e,false) 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