Commit 81675d72 authored by 聖園ミカ's avatar 聖園ミカ 🐟

7

parent 909a59de
...@@ -90,7 +90,7 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -90,7 +90,7 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp)
--local g=Duel.GetOperatedGroup() --local g=Duel.GetOperatedGroup()
--if g:IsExists(Card.IsLocation,1,nil,LOCATION_DECK) or g:IsExists(Card.IsLocation,1,nil,LOCATION_DECK) then Duel.ShuffleDeck(tp) end --if g:IsExists(Card.IsLocation,1,nil,LOCATION_DECK) or g:IsExists(Card.IsLocation,1,nil,LOCATION_DECK) then Duel.ShuffleDeck(tp) end
if #tg>0 then if #tg>0 then
local og = Duel.SelectMatchingCard(tp,s.refilter,tp,LOCATION_DECK,0,1,#tg,nil) local og = Duel.SelectMatchingCard(tp,s.remfilter,tp,LOCATION_DECK,0,1,#tg,nil)
if not og then return end if not og then return end
Duel.Remove(og,POS_FACEUP,REASON_EFFECT) Duel.Remove(og,POS_FACEUP,REASON_EFFECT)
...@@ -100,7 +100,7 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -100,7 +100,7 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp)
end end
function s.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function s.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_REMOVED) and chkc:IsControler(tp) and s.thfilter(chkc) and not Duel.IsPlayerAffectedByEffect(tp,59822133) end if chkc then return chkc:IsLocation(LOCATION_REMOVED) and chkc:IsControler(tp) and s.thfilter(chkc) and not Duel.IsPlayerAffectedByEffect(tp,59822133) end
if chk==0 then return Duel.IsExistingTarget(s.refilter,tp,LOCATION_REMOVED,0,1,e:GetHandler()) and Duel.GetFieldGroupCount(e:GetHandlerPlayer(),0,LOCATION_MZONE)>0 end if chk==0 then return Duel.IsExistingTarget(s.remfilter,tp,LOCATION_REMOVED,0,1,e:GetHandler()) and Duel.GetFieldGroupCount(e:GetHandlerPlayer(),0,LOCATION_MZONE)>0 end
--Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND) --Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
--local g=Duel.SelectTarget(tp,s.thfilter,tp,LOCATION_GRAVE,0,1,1,e:GetHandler()) --local g=Duel.SelectTarget(tp,s.thfilter,tp,LOCATION_GRAVE,0,1,1,e:GetHandler())
Duel.SetOperationInfo(0,CATEGORY_REMOVE,nil,nil,0,0) Duel.SetOperationInfo(0,CATEGORY_REMOVE,nil,nil,0,0)
...@@ -112,7 +112,7 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp) ...@@ -112,7 +112,7 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local c=e:GetHandler() local c=e:GetHandler()
local fid=c:GetFieldID() local fid=c:GetFieldID()
local g=Duel.SelectMatchingCard(tp,s.refilter,tp,LOCATION_REMOVED,0,1,Duel.GetFieldGroupCount(e:GetHandlerPlayer(),0,LOCATION_MZONE),nil) local g=Duel.SelectMatchingCard(tp,s.remfilter,tp,LOCATION_REMOVED,0,1,Duel.GetFieldGroupCount(e:GetHandlerPlayer(),0,LOCATION_MZONE),nil)
if not #g then return end if not #g then return end
local tc=g:GetFirst() local tc=g:GetFirst()
while tc do while tc do
...@@ -166,7 +166,7 @@ end ...@@ -166,7 +166,7 @@ end
function s.spelimit(e,c) function s.spelimit(e,c)
return (not c:IsSetCard(0x690)) and c:IsLocation(LOCATION_EXTRA) return (not c:IsSetCard(0x690)) and c:IsLocation(LOCATION_EXTRA)
end end
function s.refilter(c) function s.remfilter(c)
return c:IsSetCard(0x690) and c:IsType(TYPE_MONSTER) and c:IsRace(RACE_WARRIOR) return c:IsSetCard(0x690) and c:IsType(TYPE_MONSTER) and c:IsRace(RACE_WARRIOR)
end end
function s.tdfilter(c) function s.tdfilter(c)
......
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