Commit 84e37aef authored by 花桃白音's avatar 花桃白音

fix --0004 grave effect in self ep#06&13

parent c8180de3
......@@ -55,6 +55,9 @@ function cm.initial_effect(c)
.e("SetCode",EVENT_PHASE+PHASE_END)
.e("SetRange",LOCATION_GRAVE)
.e("SetCountLimit",1,m)
.e("SetCondition"function(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetTurnPlayer()==tp
end)
.e("SetTarget",function(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsAbleToHand() end
Duel.SetOperationInfo(0,CATEGORY_TOHAND,e:GetHandler(),1,0,0)
......
......@@ -29,9 +29,9 @@ function cm.initial_effect(c)
Duel.ShuffleDeck(tp)
end
if Duel.IsExistingMatchingCard(function(c) return c:IsCode(4204000) end,tp,LOCATION_ONFIELD,0,1,nil) then
if Duel.IsExistingMatchingCard(aux.NecroValleyFilter(function(c)return c:IsAbleToDeck() end),tp,LOCATION_GRAVE+LOCATION_REMOVED,0,1,nil,e,tp) and Duel.SelectYesNo(tp,aux.Stringid(4204013,0)) then
if Duel.IsExistingMatchingCard(aux.NecroValleyFilter(function(c)return c:IsAbleToDeck() end),tp,LOCATION_GRAVE,0,1,nil,e,tp) and Duel.SelectYesNo(tp,aux.Stringid(4204013,0)) then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TODECK)
local g=Duel.SelectMatchingCard(tp,aux.NecroValleyFilter(function(c) return c:IsAbleToDeck() end),tp,LOCATION_GRAVE+LOCATION_REMOVED,0,1,1,nil,e,tp)
local g=Duel.SelectMatchingCard(tp,aux.NecroValleyFilter(function(c) return c:IsAbleToDeck() end),tp,LOCATION_GRAVE,0,1,1,nil,e,tp)
if #g>0 then
Duel.BreakEffect()
Duel.SendtoDeck(g,nil,SEQ_DECKTOP,REASON_EFFECT)
......@@ -53,6 +53,9 @@ function cm.initial_effect(c)
.e("SetCode",EVENT_PHASE+PHASE_END)
.e("SetRange",LOCATION_GRAVE)
.e("SetCountLimit",1)
.e("SetCondition"function(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetTurnPlayer()==tp
end)
.e("SetTarget",function(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsAbleToHand() end
Duel.SetOperationInfo(0,CATEGORY_TOHAND,e:GetHandler(),1,0,0)
......
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