Commit cb8a414d authored by Momobako's avatar Momobako

Push by Appveyor

parent 2038f804
...@@ -11,6 +11,7 @@ function c2120000.initial_effect(c) ...@@ -11,6 +11,7 @@ function c2120000.initial_effect(c)
e1:SetRange(LOCATION_MZONE) e1:SetRange(LOCATION_MZONE)
e1:SetCountLimit(1,2120000) e1:SetCountLimit(1,2120000)
e1:SetCost(c2120000.cost) e1:SetCost(c2120000.cost)
e1:SetCondition(c2120000.discon)
e1:SetTarget(c2120000.target) e1:SetTarget(c2120000.target)
e1:SetOperation(c2120000.operation) e1:SetOperation(c2120000.operation)
c:RegisterEffect(e1) c:RegisterEffect(e1)
...@@ -23,6 +24,7 @@ function c2120000.initial_effect(c) ...@@ -23,6 +24,7 @@ function c2120000.initial_effect(c)
e2:SetProperty(EFFECT_FLAG_DAMAGE_STEP) e2:SetProperty(EFFECT_FLAG_DAMAGE_STEP)
e2:SetHintTiming(0,TIMING_END_PHASE) e2:SetHintTiming(0,TIMING_END_PHASE)
e2:SetCountLimit(1,2121000) e2:SetCountLimit(1,2121000)
e2:SetCondition(c2120000.discon)
e2:SetCost(c2120000.cost2) e2:SetCost(c2120000.cost2)
e2:SetOperation(c2120000.operation2) e2:SetOperation(c2120000.operation2)
c:RegisterEffect(e2) c:RegisterEffect(e2)
...@@ -55,6 +57,9 @@ end ...@@ -55,6 +57,9 @@ end
function c2120000.cfilter(c) function c2120000.cfilter(c)
return c:IsType(TYPE_MONSTER) and c:IsSetCard(0x5219) and c:IsDiscardable() and c:IsAbleToGraveAsCost() return c:IsType(TYPE_MONSTER) and c:IsSetCard(0x5219) and c:IsDiscardable() and c:IsAbleToGraveAsCost()
end end
function c2120000.discon(e,tp,eg,ep,ev,re,r,rp)
return not e:GetHandler():IsStatus(STATUS_BATTLE_DESTROYED)
end
function c2120000.cost2(e,tp,eg,ep,ev,re,r,rp,chk) function c2120000.cost2(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c2120000.cfilter,tp,LOCATION_HAND,0,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(c2120000.cfilter,tp,LOCATION_HAND,0,1,nil) end
Duel.DiscardHand(tp,c2120000.cfilter,1,1,REASON_COST+REASON_DISCARD,nil) Duel.DiscardHand(tp,c2120000.cfilter,1,1,REASON_COST+REASON_DISCARD,nil)
......
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