Commit eca30c75 authored by tsubaki's avatar tsubaki

2.0.0正a version

parent bab05fdd
No preview for this file type
No preview for this file type
......@@ -16,9 +16,9 @@ function c23057.cfilter(c)
return c:IsType(TYPE_MONSTER) and c:IsAbleToDeckAsCost()
end
function c23057.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c23057.cfilter,tp,LOCATION_GRAVE,0,1,nil) end
if chk==0 then return Duel.IsExistingMatchingCard(c23057.cfilter,tp,LOCATION_MZONE+LOCATION_GRAVE,0,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TODECK)
local g=Duel.SelectMatchingCard(tp,c23057.cfilter,tp,LOCATION_GRAVE,0,1,1,nil)
local g=Duel.SelectMatchingCard(tp,c23057.cfilter,tp,LOCATION_MZONE+LOCATION_GRAVE,0,1,1,nil)
Duel.ConfirmCards(1-tp,g)
Duel.SendtoDeck(g,nil,1,REASON_COST)
end
......@@ -40,7 +40,7 @@ function c23057.activate(e,tp,eg,ep,ev,re,r,rp)
e2:SetOperation(c23057.damop)
e2:SetReset(RESET_PHASE+PHASE_DRAW+RESET_OPPO_TURN,1)
Duel.RegisterEffect(e2,tp)
DOT.DotCounter.Add(nil,1-tp,0,2000,2000,e)
DOT.DotCounter.Add(nil,1-tp,0,1000,1000,e)
end
end
function c23057.damcon(e,tp,eg,ep,ev,re,r,rp)
......@@ -53,7 +53,7 @@ function c23057.damop(e,tp,eg,ep,ev,re,r,rp)
ct=ct+1
e:SetLabel(ct)
c:SetTurnCounter(ct)
Duel.Damage(1-tp,2000,REASON_EFFECT)
DOT.DotCounter.Add(nil,1-tp,0,-2000,-2000,e)
Duel.Damage(1-tp,1000,REASON_EFFECT)
DOT.DotCounter.Add(nil,1-tp,0,-1000,-1000,e)
end
end
......@@ -27,6 +27,7 @@ function c24071.initial_effect(c)
e3:SetProperty(EFFECT_FLAG_DAMAGE_STEP)
e3:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F)
e3:SetCode(EVENT_TO_GRAVE)
e3:SetCountLimit(1)
e3:SetTarget(c24071.thtg)
e3:SetOperation(c24071.thop)
c:RegisterEffect(e3)
......@@ -66,7 +67,7 @@ function c24071.thfilter(c)
return c:IsRace(RACE_ZOMBIE) and c:GetLevel()==1 and (c:IsAbleToHand())
end
function c24071.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c24071.thfilter,tp,LOCATION_DECK,0,1,nil) end
if chk==0 then return e:GetHandler():GetPreviousLocation()==LOCATION_ONFIELD and Duel.IsExistingMatchingCard(c24071.thfilter,tp,LOCATION_DECK,0,1,nil) end
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK)
end
function c24071.spfilter(c,e,tp)
......
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