Commit 4030b8b0 authored by TanakaKotoha's avatar TanakaKotoha

888

parent cbc8aa11
......@@ -27,7 +27,7 @@ function cm.initial_effect(c)
c:RegisterEffect(e2)
end
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
function cm.atcost(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler()
......
......@@ -27,7 +27,7 @@ function cm.initial_effect(c)
c:RegisterEffect(e2)
end
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
function cm.atcost(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler()
......
......@@ -26,7 +26,7 @@ function cm.initial_effect(c)
c:RegisterEffect(e3)
end
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
function cm.atcost(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler()
......
......@@ -26,7 +26,7 @@ function cm.initial_effect(c)
c:RegisterEffect(e3)
end
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
function cm.tkcost(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler()
......
......@@ -103,9 +103,9 @@ function cm.disop(e,tp,eg,ep,ev,re,r,rp)
-- if loc==LOCATION_MZONE then x=0x10000 end
-- if loc==LOCATION_SZONE then x=0x1000000 end
-- if loc==LOCATION_FZONE then
-- Debug.Message("成功了,目标卡在场地区域!")
-- Debug.Message("成功了,目标卡在场地区域!")
-- else
-- Debug.Message("成功了,在"..(2^tc:GetSequence())*x.."处抓到了卡!")
-- Debug.Message("成功了,在"..(2^tc:GetSequence())*x.."处抓到了卡!")
-- end
--end
local e1=Effect.CreateEffect(c)
......@@ -341,6 +341,10 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget()
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
local og=tc:GetOverlayGroup()
if og:GetCount()>0 then
Duel.SendtoGrave(og,REASON_RULE)
end
Duel.Overlay(c,Group.FromCards(tc))
end
end
\ No newline at end of file
......@@ -72,9 +72,9 @@ function cm.operation(e,tp,eg,ep,ev,re,r,rp)
Duel.ReleaseRitualMaterial(mat)
Duel.SendtoGrave(mat2,REASON_EFFECT+REASON_MATERIAL+REASON_RITUAL)
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(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(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(15000668) then Debug.Message("Today's cry, sounds a bit melancholy.") end
Duel.SpecialSummon(tc,SUMMON_TYPE_RITUAL,tp,tp,false,true,POS_FACEUP)
tc:CompleteProcedure()
end
......@@ -175,9 +175,9 @@ function cm.operation2(e,tp,eg,ep,ev,re,r,rp)
Duel.ReleaseRitualMaterial(mat)
Duel.SendtoGrave(mat2,REASON_EFFECT+REASON_MATERIAL+REASON_RITUAL)
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(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(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(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
local e1=Effect.CreateEffect(e:GetHandler())
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