Commit eb3900b6 authored by Tachibana's avatar Tachibana

得得得得得

parent a8aac4b4
......@@ -92,6 +92,10 @@ function cm.ovop(e,tp,eg,ep,ev,re,r,rp)
e1:SetCode(EFFECT_SEND_REPLACE)
e1:SetTarget(function(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
local og=rc:GetOverlayGroup()
if og:GetCount()>0 then
Duel.SendtoGrave(og,REASON_RULE)
end
Duel.Overlay(tc,rc)
return true
end)
......
......@@ -56,6 +56,7 @@ function cm.splimit(e,se,sp,st)
return se:IsHasType(EFFECT_TYPE_ACTIONS)
end
function cm.condition(e,tp)
local ph=Duel.GetCurrentPhase()
return Duel.GetTurnPlayer()==tp and Duel.GetCurrentChain()==0
and ph>=PHASE_BATTLE_START and ph<=PHASE_BATTLE
end
......
......@@ -96,7 +96,7 @@ function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
end
function cm.opdo_1(e,tp)
if e:GetHandler():IsReleasableByEffect() then
Duel.Release(e:GetHandler(),REASON_EFFECT)
Duel.SendtoDeck(e:GetHandler(),nil,2,REASON_EFFECT)
end
end
function cm.opdo_2(e,tp)
......
......@@ -52,7 +52,7 @@ end
function cm.dfilter(c)
return c:IsFaceup() and c:IsType(TYPE_NORMAL) and c:IsSetCard(0x3008)
end
function cm.activate(e,tp,eg,ep,ev,re,r,rp)
function cm.operation(e,tp,eg,ep,ev,re,r,rp)
local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetCode(EFFECT_DIRECT_ATTACK)
......
......@@ -112,7 +112,7 @@ function cm.operation(e,tp,eg,ep,ev,re,r,rp)
end
--Effect 4
function cm.con1(e,tp,eg,ep,ev,re,r,rp)
return not Duel.IsExistingMatchingCard(Card.IsFaceup,tp,LOCATION_MZONE,0,1,c)
return Duel.GetMatchingGroupCount(Card.IsOnField,tp,LOCATION_MZONE,0,nil)==1
end
--Effect 6
function cm.cfilter(c)
......
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