Commit 96980f4b authored by Tachibana's avatar Tachibana

nmbd

parent de31666c
......@@ -7,7 +7,6 @@ function cm.initial_effect(c)
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetCountLimit(1,m+EFFECT_COUNT_CODE_OATH)
c:RegisterEffect(e1)
--Add counter
local e2=Effect.CreateEffect(c)
......@@ -16,6 +15,13 @@ function cm.initial_effect(c)
e2:SetRange(LOCATION_FZONE)
e2:SetOperation(cm.acop)
c:RegisterEffect(e2)
--Add counter2
local e5=Effect.CreateEffect(c)
e5:SetType(EFFECT_TYPE_CONTINUOUS+EFFECT_TYPE_FIELD)
e5:SetCode(EVENT_TO_GRAVE)
e5:SetRange(LOCATION_FZONE)
e5:SetOperation(cm.acop2)
c:RegisterEffect(e5)
--atk down
local e3=Effect.CreateEffect(c)
e3:SetType(EFFECT_TYPE_FIELD)
......@@ -75,4 +81,14 @@ function cm.ctop(e,tp,eg,ep,ev,re,r,rp)
local tc=tc1:GetFirst()
tc:AddCounter(0x34f,ct,true)
end
end
function cm.cfilter2(c,tp,re)
return c:GetPreviousControler()==1-tp and c:IsPreviousLocation(LOCATION_ONFIELD) and ((c:IsType(TYPE_MONSTER) and c:IsReason(REASON_BATTLE) and c:GetReasonCard():IsSetCard(0x3341,0x3340)) or (c:IsReason(REASON_EFFECT) and c:GetReasonEffect():GetHandler():IsSetCard(0x3341,0x3340)))
end
function cm.acop2(e,tp,eg,ep,ev,re,r,rp)
local ct=eg:FilterCount(cm.cfilter2,nil,tp,re)
if ct>0 then
e:GetHandler():AddCounter(0x34f,ct,true)
end
end
\ No newline at end of file
......@@ -44,6 +44,8 @@ function cm.initial_effect(c)
e5:SetOperation(cm.ctop)
c:RegisterEffect(e5)
local e6=e5:Clone()
e6:SetType(EFFECT_TYPE_QUICK_O)
e6:SetCode(EVENT_FREE_CHAIN)
e6:SetCondition(cm.con2)
c:RegisterEffect(e6)
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