Commit 38551737 authored by 聖園ミカ's avatar 聖園ミカ 🐟

byd

parent ba9f34fb
......@@ -46,6 +46,7 @@ function c16362016.initial_effect(c)
e5:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
e5:SetCode(EVENT_PHASE+PHASE_BATTLE_START)
e5:SetRange(LOCATION_MZONE)
e5:SetCondition(c16362016.con2)
e5:SetCost(c16362016.cost2)
e5:SetOperation(c16362016.op2)
c:RegisterEffect(e5)
......@@ -70,6 +71,7 @@ function c16362016.initial_effect(c)
e7:SetCode(EVENT_FREE_CHAIN)
e7:SetRange(LOCATION_MZONE)
e7:SetHintTiming(0,TIMINGS_CHECK_MONSTER+TIMING_END_PHASE)
e7:SetCondition(c16362016.con6)
e7:SetCost(c16362016.cost6)
e7:SetTarget(c16362016.tg6)
e7:SetOperation(c16362016.op6)
......@@ -105,9 +107,12 @@ function c16362016.spop(e,tp,eg,ep,ev,re,r,rp)
Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP)
end
end
function c16362016.con2(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetCounter(0xdc0)>=2
end
function c16362016.cost2(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsCanRemoveCounter(tp,0xdc0,2,REASON_COST) end
e:GetHandler():RemoveCounter(tp,0xdc0,2,REASON_COST)
if chk==0 then return Duel.IsCanRemoveCounter(tp,1,0,0xdc0,2,REASON_COST) end
Duel.RemoveCounter(tp,1,0,0xdc0,2,REASON_COST)
end
function c16362016.op2(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
......@@ -130,11 +135,11 @@ function c16362016.con4(e,tp,eg,ep,ev,re,r,rp)
if e:GetHandler():IsStatus(STATUS_BATTLE_DESTROYED) then return false end
if rp==tp or not re:IsHasProperty(EFFECT_FLAG_CARD_TARGET) then return end
local g=Duel.GetChainInfo(ev,CHAININFO_TARGET_CARDS)
return g and g:IsContains(e:GetHandler())
return g and g:IsContains(e:GetHandler()) and e:GetHandler():GetCounter(0xdc0)>=4
end
function c16362016.cost4(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsCanRemoveCounter(tp,0xdc0,4,REASON_COST) end
e:GetHandler():RemoveCounter(tp,0xdc0,4,REASON_COST)
if chk==0 then return Duel.IsCanRemoveCounter(tp,1,0,0xdc0,4,REASON_COST) end
Duel.RemoveCounter(tp,1,0,0xdc0,4,REASON_COST)
end
function c16362016.tg4(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
......@@ -148,9 +153,12 @@ function c16362016.op4(e,tp,eg,ep,ev,re,r,rp)
Duel.Destroy(eg,REASON_EFFECT)
end
end
function c16362016.con6(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetCounter(0xdc0)==6
end
function c16362016.cost6(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsCanRemoveCounter(tp,0xdc0,6,REASON_COST) end
e:GetHandler():RemoveCounter(tp,0xdc0,6,REASON_COST)
if chk==0 then return Duel.IsCanRemoveCounter(tp,1,0,0xdc0,6,REASON_COST) end
Duel.RemoveCounter(tp,1,0,0xdc0,6,REASON_COST)
end
function c16362016.tg6(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(nil,tp,0,LOCATION_ONFIELD,1,nil) 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