Commit 4030b8b0 authored by TanakaKotoha's avatar TanakaKotoha

888

parent cbc8aa11
...@@ -27,7 +27,7 @@ function cm.initial_effect(c) ...@@ -27,7 +27,7 @@ function cm.initial_effect(c)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function cm.spcon(e,tp,eg,ep,ev,re,r,rp) function cm.spcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetLP(e:GetHandlerPlayer())<=2000 return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and Duel.GetLP(e:GetHandlerPlayer())<=2000
end end
function cm.atcost(e,tp,eg,ep,ev,re,r,rp,chk) function cm.atcost(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler() local c=e:GetHandler()
......
...@@ -27,7 +27,7 @@ function cm.initial_effect(c) ...@@ -27,7 +27,7 @@ function cm.initial_effect(c)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function cm.spcon(e,tp,eg,ep,ev,re,r,rp) function cm.spcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetLP(e:GetHandlerPlayer())<=2000 return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and Duel.GetLP(e:GetHandlerPlayer())<=2000
end end
function cm.atcost(e,tp,eg,ep,ev,re,r,rp,chk) function cm.atcost(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler() local c=e:GetHandler()
......
...@@ -26,7 +26,7 @@ function cm.initial_effect(c) ...@@ -26,7 +26,7 @@ function cm.initial_effect(c)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
function cm.spcon(e,tp,eg,ep,ev,re,r,rp) function cm.spcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetLP(e:GetHandlerPlayer())<=2000 return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and Duel.GetLP(e:GetHandlerPlayer())<=2000
end end
function cm.atcost(e,tp,eg,ep,ev,re,r,rp,chk) function cm.atcost(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler() local c=e:GetHandler()
......
...@@ -26,7 +26,7 @@ function cm.initial_effect(c) ...@@ -26,7 +26,7 @@ function cm.initial_effect(c)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
function cm.spcon(e,tp,eg,ep,ev,re,r,rp) function cm.spcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetLP(e:GetHandlerPlayer())<=2000 return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and Duel.GetLP(e:GetHandlerPlayer())<=2000
end end
function cm.tkcost(e,tp,eg,ep,ev,re,r,rp,chk) function cm.tkcost(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler() local c=e:GetHandler()
......
...@@ -341,6 +341,10 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -341,6 +341,10 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget() local tc=Duel.GetFirstTarget()
if not (c:IsRelateToEffect(e) and tc:IsRelateToEffect(e)) then return end if not (c:IsRelateToEffect(e) and tc:IsRelateToEffect(e)) then return end
if Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)~=0 then if Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)~=0 then
local og=tc:GetOverlayGroup()
if og:GetCount()>0 then
Duel.SendtoGrave(og,REASON_RULE)
end
Duel.Overlay(c,Group.FromCards(tc)) Duel.Overlay(c,Group.FromCards(tc))
end end
end end
\ No newline at end of file
...@@ -72,9 +72,9 @@ function cm.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -72,9 +72,9 @@ function cm.operation(e,tp,eg,ep,ev,re,r,rp)
Duel.ReleaseRitualMaterial(mat) Duel.ReleaseRitualMaterial(mat)
Duel.SendtoGrave(mat2,REASON_EFFECT+REASON_MATERIAL+REASON_RITUAL) Duel.SendtoGrave(mat2,REASON_EFFECT+REASON_MATERIAL+REASON_RITUAL)
Duel.BreakEffect() Duel.BreakEffect()
if tc:IsCode(15000666) then Debug.Message("A shadow floating in the mist, a singing grim reaper with a blank smile.") end --if tc:IsCode(15000666) then Debug.Message("A shadow floating in the mist, a singing grim reaper with a blank smile.") end
if tc:IsCode(15000667) then Debug.Message("Let the pain…ghosts feel pain?") end --if tc:IsCode(15000667) then Debug.Message("Let the pain…ghosts feel pain?") end
if tc:IsCode(15000668) then Debug.Message("Today's cry, sounds a bit melancholy.") end --if tc:IsCode(15000668) then Debug.Message("Today's cry, sounds a bit melancholy.") end
Duel.SpecialSummon(tc,SUMMON_TYPE_RITUAL,tp,tp,false,true,POS_FACEUP) Duel.SpecialSummon(tc,SUMMON_TYPE_RITUAL,tp,tp,false,true,POS_FACEUP)
tc:CompleteProcedure() tc:CompleteProcedure()
end end
...@@ -175,9 +175,9 @@ function cm.operation2(e,tp,eg,ep,ev,re,r,rp) ...@@ -175,9 +175,9 @@ function cm.operation2(e,tp,eg,ep,ev,re,r,rp)
Duel.ReleaseRitualMaterial(mat) Duel.ReleaseRitualMaterial(mat)
Duel.SendtoGrave(mat2,REASON_EFFECT+REASON_MATERIAL+REASON_RITUAL) Duel.SendtoGrave(mat2,REASON_EFFECT+REASON_MATERIAL+REASON_RITUAL)
Duel.BreakEffect() Duel.BreakEffect()
if tc:IsCode(15000666) then Debug.Message("A shadow floating in the mist, a singing grim reaper with a blank smile.") end --if tc:IsCode(15000666) then Debug.Message("A shadow floating in the mist, a singing grim reaper with a blank smile.") end
if tc:IsCode(15000667) then Debug.Message("Let the pain…ghosts feel pain?") end --if tc:IsCode(15000667) then Debug.Message("Let the pain…ghosts feel pain?") end
if tc:IsCode(15000668) then Debug.Message("Today's cry, sounds a bit melancholy.") end --if tc:IsCode(15000668) then Debug.Message("Today's cry, sounds a bit melancholy.") end
if Duel.SpecialSummonStep(tc,SUMMON_TYPE_RITUAL,tp,tp,false,true,POS_FACEUP) then if Duel.SpecialSummonStep(tc,SUMMON_TYPE_RITUAL,tp,tp,false,true,POS_FACEUP) then
local e1=Effect.CreateEffect(e:GetHandler()) local e1=Effect.CreateEffect(e:GetHandler())
e1:SetDescription(aux.Stringid(m,3)) e1:SetDescription(aux.Stringid(m,3))
......
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