Commit 1997f87c authored by REIKAI's avatar REIKAI 💬

repo 20.15

parent f0a6960d
...@@ -67,14 +67,14 @@ function cm.thcost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -67,14 +67,14 @@ function cm.thcost(e,tp,eg,ep,ev,re,r,rp,chk)
end end
function cm.gfilter(g,tp,c) function cm.gfilter(g,tp,c)
local ct=g:GetSum(Card.GetLevel) local ct=g:GetSum(Card.GetLevel)
return c:IsCanRemoveCounter(tp,0x100e,ct,REASON_COST) return c:IsCanRemoveCounter(0x100e,ct,REASON_COST)
end end
function cm.gfilter2(g,lv) function cm.gfilter2(g,lv)
local ct=g:GetSum(Card.GetLevel) local ct=g:GetSum(Card.GetLevel)
return ct <= lv return ct <= lv
end end
function cm.spcheck(c,e,tp) function cm.spcheck(c,e,tp)
return c:IsListedACounter() and c:IsCanBeSpecialSummoned(e,0,tp,false,false) and c:IsLevelAbove(1) return c:IsListedACounter() and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end end
function cm.thtg(e,tp,eg,ep,ev,re,r,rp,chk) function cm.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler() local c=e:GetHandler()
...@@ -92,6 +92,7 @@ function cm.thtg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -92,6 +92,7 @@ function cm.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
end end
local ct1 = c:GetCounter(0x100e) local ct1 = c:GetCounter(0x100e)
c:RemoveCounter(tp,0x100e,ct1,REASON_COST) c:RemoveCounter(tp,0x100e,ct1,REASON_COST)
Duel.RaiseEvent(e:GetHandler(),EVENT_REMOVE_COUNTER+0x100e,e,REASON_COST,tp,tp,ev)
Duel.SetTargetParam(ct1) Duel.SetTargetParam(ct1)
e:SetLabel(0) e:SetLabel(0)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND+LOCATION_GRAVE) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND+LOCATION_GRAVE)
......
...@@ -106,7 +106,7 @@ function MJ_VHisc.op(e,tp,eg,ep,ev,re,r,rp) ...@@ -106,7 +106,7 @@ function MJ_VHisc.op(e,tp,eg,ep,ev,re,r,rp)
return return
end end
Duel.ConfirmDecktop(tp,dcount-seq) Duel.ConfirmDecktop(tp,dcount-seq)
if Duel.SendtoGrave(tgcard,REASON_EFFECT) then if Duel.SendtoGrave(tgcard,REASON_EFFECT) and tgcard:IsLocation(LOCATION_GRAVE) then
local token=Duel.CreateToken(tp,33201009) local token=Duel.CreateToken(tp,33201009)
Duel.MoveToField(token,tp,tp,LOCATION_SZONE,POS_FACEUP,true) Duel.MoveToField(token,tp,tp,LOCATION_SZONE,POS_FACEUP,true)
local lv=tgcard:GetOriginalLevel() local lv=tgcard:GetOriginalLevel()
......
...@@ -15,7 +15,7 @@ function s.initial_effect(c) ...@@ -15,7 +15,7 @@ function s.initial_effect(c)
end end
function s.rmfilter(c) function s.rmfilter(c)
return c:IsRace(RACE_ZOMBIE) and c:IsAbleToRemove() return c:IsRace(RACE_ZOMBIE) and c:IsLevelAbove(0) and c:IsAbleToRemove()
end end
function s.rdtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function s.rdtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsControler(1-tp) and chkc:IsLocation(LOCATION_GRAVE) and s.rmfilter(chkc) end if chkc then return chkc:IsControler(1-tp) and chkc:IsLocation(LOCATION_GRAVE) and s.rmfilter(chkc) end
......
...@@ -33,7 +33,7 @@ function s.destg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -33,7 +33,7 @@ function s.destg(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SetOperationInfo(0,CATEGORY_DESTROY,nil,0,0,0) Duel.SetOperationInfo(0,CATEGORY_DESTROY,nil,0,0,0)
end end
function s.desfilter(c) function s.desfilter(c)
return (c:IsRace(RACE_ZOMBIE) or c:IsCode(33201009)) and c:IsFaceup() return ((c:IsRace(RACE_ZOMBIE) and c:IsType(TYPE_MONSTER)) or c:IsCode(33201009)) and c:IsFaceup()
end end
function s.desop(e,tp,eg,ep,ev,re,r,rp) function s.desop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
......
...@@ -190,7 +190,7 @@ function cm.op3(e,tp,eg,ep,ev,re,r,rp) ...@@ -190,7 +190,7 @@ function cm.op3(e,tp,eg,ep,ev,re,r,rp)
e2:SetCategory(CATEGORY_RECOVER) e2:SetCategory(CATEGORY_RECOVER)
e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS) e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e2:SetCode(EVENT_DAMAGE) e2:SetCode(EVENT_DAMAGE)
e2:SetReset(RESET_PHASE+PHASE_END) e2:SetReset(RESET_PHASE+Duel.GetCurrentPhase())
e2:SetCondition(cm.con11) e2:SetCondition(cm.con11)
e2:SetOperation(cm.op11) e2:SetOperation(cm.op11)
Duel.RegisterEffect(e2,tp) Duel.RegisterEffect(e2,tp)
......
...@@ -14,7 +14,7 @@ function s.initial_effect(c) ...@@ -14,7 +14,7 @@ function s.initial_effect(c)
local e3 = Scl.CreateSingleTriggerOptionalEffect(c, EVENT_RELEASE, local e3 = Scl.CreateSingleTriggerOptionalEffect(c, EVENT_RELEASE,
"ShuffleIn2Deck", {1, id + 200}, "ShuffleIn2Deck", {1, id + 200},
"ShuffleIn2Deck&Draw", "Delay", B2Sayaka.ExtraLimit, nil, { "ShuffleIn2Deck&Draw", "Delay", B2Sayaka.ExtraLimit, nil, {
{ "~Target", Card.IsAbleToDeck, "ShuffleIn2Deck", "Banish,GY" }, { "~Target", Card.IsAbleToDeck, "ShuffleIn2Deck", "Banished,GY" },
{ "PlayerTarget", "Draw", 1} }, s.drop) { "PlayerTarget", "Draw", 1} }, s.drop)
end end
function s.damop(e,tp) function s.damop(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