Commit 051105a2 authored by TanakaKotoha's avatar TanakaKotoha

wdnmd

parent 6e4d978a
......@@ -32,12 +32,21 @@ function cm.initial_effect(c)
e4:SetLabelObject(e2)
c:RegisterEffect(e4)
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e1:SetRange(LOCATION_MZONE)
e1:SetCode(EVENT_MOVE)
e1:SetOperation(cm.op)
local e11=Effect.CreateEffect(c)
e11:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e11:SetRange(LOCATION_MZONE)
e11:SetCode(EVENT_MOVE)
e11:SetOperation(cm.op)
c:RegisterEffect(e1)
local e12=e11:Clone()
e12:SetCode(EVENT_SPSUMMON_SUCCESS)
c:RegisterEffect(e12)
local e13=e11:Clone()
e13:SetCode(EVENT_SUMMON_SUCCESS)
c:RegisterEffect(e13)
local e14=e11:Clone()
e14:SetCode(EVENT_FLIP_SUMMON_SUCCESS)
c:RegisterEffect(e14)
--special summon
local e0=Effect.CreateEffect(c)
e0:SetDescription(aux.Stringid(m,0))
......@@ -91,15 +100,14 @@ function cm.spcon(e,c)
end
function cm.spop(e,tp,eg,ep,ev,re,r,rp,chk)
local tp=e:GetHandlerPlayer()
Duel.DiscardHand(tp,Card.IsDiscardable,1,1,REASON_COST+REASON_DISCARD)
Duel.DiscardHand(tp,Card.IsDiscardable,1,1,REASON_COST+REASON_DISCARD,nil)
end
function cm.actcon(e,tp,eg,ep,ev,re,r,rp)
local te=e:GetLabelObject()
return re==te and Duel.GetFieldGroupCount(tp,0,LOCATION_MZONE)>0
return re==te
end
function cm.actop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
if not Duel.GetCurrentPhase()==PHASE_MAIN1 then return end
local turnp=Duel.GetTurnPlayer()
Duel.SkipPhase(turnp,PHASE_STANDBY,RESET_PHASE+PHASE_END,1)
Duel.SkipPhase(turnp,PHASE_MAIN1,RESET_PHASE+PHASE_END,1)
......
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