Commit a239f9fe authored by Tachibana's avatar Tachibana 🐟

str

parent 076968bf
Pipeline #26835 passed with stages
in 19 minutes and 14 seconds
No preview for this file type
......@@ -108,6 +108,7 @@ function s.disop(e,tp,eg,ep,ev,re,r,rp)
end
function s.negop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local bc=e:GetHandler():GetBattleTarget()
if bc:IsRelateToBattle() then
local e1=Effect.CreateEffect(c)
......
......@@ -31,17 +31,17 @@ function s.initial_effect(c)
c:RegisterEffect(e2)
end
function s.filter(c)
return c:IsSetCard(0x3540) and c:IsAbleToDeck()
return c:IsSetCard(0x3540) and c:IsAbleToDeck() and (c:IsLocation(LOCATION_GRAVE) or c:IsFaceup())
end
function s.thfilter(c)
return c:IsSetCard(0x9541) and c:IsType(TYPE_SPELL) and c:IsAbleToHand()
end
function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and s.filter(chkc) end
if chkc then return chkc:IsLocation(LOCATION_GRAVE+LOCATION_REMOVED) and chkc:IsControler(tp) and s.filter(chkc) end
if chk==0 then return Duel.IsExistingMatchingCard(s.thfilter,tp,LOCATION_DECK,0,1,nil)
and Duel.IsExistingTarget(s.filter,tp,LOCATION_GRAVE,0,5,nil) end
and Duel.IsExistingTarget(s.filter,tp,LOCATION_GRAVE+LOCATION_REMOVED,0,5,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TODECK)
local g=Duel.SelectTarget(tp,s.filter,tp,LOCATION_GRAVE,0,5,5,nil)
local g=Duel.SelectTarget(tp,s.filter,tp,LOCATION_GRAVE+LOCATION_REMOVED,0,5,5,nil)
Duel.SetOperationInfo(0,CATEGORY_TODECK,g,g:GetCount(),0,0)
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK)
end
......
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