Commit 2731db51 authored by Satty's avatar Satty

fix

parent bd9ee875
Pipeline #36459 passed with stage
in 3 minutes and 28 seconds
......@@ -93,9 +93,9 @@ function s.drfilter(c)
end
function s.drcost(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler()
if chk==0 then return c:IsAbleToDeckAsCost() and Duel.IsExistingMatchingCard(s.drfilter,tp,LOCATION_ONFIELD,0,1,c) end
if chk==0 then return c:IsAbleToDeckAsCost() and Duel.IsExistingMatchingCard(s.drfilter,tp,LOCATION_ONFIELD+LOCATION_GRAVE,0,1,c) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TODECK)
local g=Duel.SelectMatchingCard(tp,s.drfilter,tp,LOCATION_ONFIELD,0,1,1,c)
local g=Duel.SelectMatchingCard(tp,s.drfilter,tp,LOCATION_ONFIELD+LOCATION_GRAVE,0,1,1,c)
if #g>0 then
g:AddCard(c)
Duel.SendtoDeck(g,nil,SEQ_DECKBOTTOM,REASON_COST)
......
......@@ -60,13 +60,13 @@ function s.negcon(e,tp,eg,ep,ev,re,r,rp)
and re:IsHasType(EFFECT_TYPE_ACTIVATE) and re:IsActiveType(TYPE_SPELL+TYPE_TRAP) and Duel.IsChainDisablable(ev)
end
function s.negtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return re:GetHandler():IsAbleToDeck() end
if chk==0 then return re:GetHandler():IsAbleToDeck() or re:GetHandler():IsAbleToExtra() end
Duel.SetOperationInfo(0,CATEGORY_DISABLE,eg,1,0,0)
Duel.SetOperationInfo(0,CATEGORY_TODECK,eg,1,0,0)
end
function s.negop(e,tp,eg,ep,ev,re,r,rp)
local rc=re:GetHandler()
if Duel.NegateActivation(ev) and rc:IsRelateToEffect(re) then
if Duel.NegateEffect(ev) and rc:IsRelateToEffect(re) then
Duel.SendtoDeck(rc,nil,SEQ_DECKBOTTOM,REASON_EFFECT)
end
end
\ No newline at end of file
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