Commit c07312b1 authored by 聖園ミカ's avatar 聖園ミカ 🐟

Replace c52700718.lua

parent 96059324
...@@ -46,7 +46,11 @@ function s.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) ...@@ -46,7 +46,11 @@ function s.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chk==0 then return Duel.IsExistingTarget(s.thfilter,tp,loc,loc,1,nil,tp) end if chk==0 then return Duel.IsExistingTarget(s.thfilter,tp,loc,loc,1,nil,tp) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SELECT) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SELECT)
local g=Duel.SelectTarget(tp,s.thfilter,tp,loc,loc,1,1,nil,tp) local g=Duel.SelectTarget(tp,s.thfilter,tp,loc,loc,1,1,nil,tp)
--Duel.SetOperationInfo(0,CATEGORY_TOHAND,g,1,0,0) if not g:GetFirst():IsAbleToHand() then
Duel.SetOperationInfo(0,CATEGORY_TODECK,g,1,0,0)
elseif not g:GetFirst():IsAbleToDeck() then
Duel.SetOperationInfo(0,CATEGORY_TOHAND,g,1,0,0)
end
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 tc=Duel.GetFirstTarget() local tc=Duel.GetFirstTarget()
...@@ -84,7 +88,7 @@ function s.ddcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -84,7 +88,7 @@ function s.ddcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetCurrentPhase()~=PHASE_DRAW return Duel.GetCurrentPhase()~=PHASE_DRAW
end end
function s.ddfilter(c,tp) function s.ddfilter(c,tp)
return c:IsControler(1-tp) return c:IsControler(1-tp) and c:IsLocation(LOCATION_HAND)
end end
function s.ddtg(e,tp,eg,ep,ev,re,r,rp,chk) function s.ddtg(e,tp,eg,ep,ev,re,r,rp,chk)
local g=eg:Filter(s.ddfilter,nil,tp) local g=eg:Filter(s.ddfilter,nil,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