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