Commit b84ee26e authored by Tachibana's avatar Tachibana

nmbd

parent 8ed6e354
......@@ -10,7 +10,7 @@ function cm.initial_effect(c)
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(m,0))
e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_DELAY)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_DELAY+EFFECT_FLAG_DAMAGE_STEP)
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
e1:SetRange(LOCATION_MZONE)
e1:SetCode(EVENT_TO_GRAVE)
......
......@@ -7,10 +7,17 @@ function c9310011.initial_effect(c)
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetRange(LOCATION_HAND)
e1:SetCountLimit(1,9310011)
e1:SetCondition(c9310011.spcon1)
e1:SetCost(c9310011.rscost)
e1:SetTarget(c9310011.tg)
e1:SetOperation(c9310011.op)
c:RegisterEffect(e1)
local e11=e1:Clone()
e11:SetType(EFFECT_TYPE_QUICK_O)
e11:SetCode(EVENT_FREE_CHAIN)
e11:SetHintTiming(0,TIMING_END_PHASE)
e11:SetCondition(c9310011.spcon2)
c:RegisterEffect(e11)
--flip
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_CONTINUOUS)
......@@ -38,10 +45,23 @@ function c9310011.initial_effect(c)
e5:SetCode(EVENT_PHASE+PHASE_END)
e5:SetRange(LOCATION_GRAVE)
e5:SetCountLimit(1,9311011)
e5:SetCondition(c9310011.spcon1)
e5:SetCost(c9310011.thcost)
e5:SetTarget(c9310011.target)
e5:SetOperation(c9310011.operation)
c:RegisterEffect(e5)
local e51=e5:Clone()
e51:SetType(EFFECT_TYPE_QUICK_O)
e51:SetCode(EVENT_FREE_CHAIN)
e51:SetHintTiming(0,TIMING_END_PHASE)
e51:SetCondition(c9310011.spcon2)
c:RegisterEffect(e51)
end
function c9310011.spcon1(e,tp,eg,ep,ev,re,r,rp)
return not Duel.IsPlayerAffectedByEffect(tp,30013020)
end
function c9310011.spcon2(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsPlayerAffectedByEffect(tp,30013020)
end
function c9310011.rscost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsDiscardable() end
......
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