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

byd

parent ce4e0651
...@@ -9,7 +9,7 @@ function s.initial_effect(c) ...@@ -9,7 +9,7 @@ function s.initial_effect(c)
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
e1:SetCode(EVENT_ATTACK_ANNOUNCE) e1:SetCode(EVENT_ATTACK_ANNOUNCE)
e1:SetRange(LOCATION_HAND+LOCATION_MZONE) e1:SetRange(LOCATION_HAND+LOCATION_MZONE)
e1:SetCountLimit(1+10000) e1:SetCountLimit(1,id+10000)
e1:SetLabel(0) e1:SetLabel(0)
e1:SetCondition(s.condition) e1:SetCondition(s.condition)
e1:SetTarget(s.target) e1:SetTarget(s.target)
......
...@@ -3,11 +3,10 @@ local s,id,o=GetID() ...@@ -3,11 +3,10 @@ local s,id,o=GetID()
Duel.LoadScript("c33201450.lua") Duel.LoadScript("c33201450.lua")
function s.initial_effect(c) function s.initial_effect(c)
--xyz summon --xyz summon
aux.AddXyzProcedure(c,nil,2,2,s.ovfilter,aux.Stringid(id,0),99,s.xyzop) aux.AddXyzProcedure(c,nil,2,2,s.ovfilter,aux.Stringid(id,0),2,s.xyzop)
c:EnableReviveLimit() c:EnableReviveLimit()
--remove --remove
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_DESTROY)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e1:SetCode(EVENT_SPSUMMON_SUCCESS) e1:SetCode(EVENT_SPSUMMON_SUCCESS)
e1:SetProperty(EFFECT_FLAG_DELAY) e1:SetProperty(EFFECT_FLAG_DELAY)
...@@ -26,7 +25,6 @@ function s.initial_effect(c) ...@@ -26,7 +25,6 @@ function s.initial_effect(c)
e2:SetOperation(s.tgop) e2:SetOperation(s.tgop)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
s.VHisc_hdst=true
function s.ovfilter(c) function s.ovfilter(c)
return c:IsFaceup() and VHisc_HDST.nck(c) and not c:IsCode(id) return c:IsFaceup() and VHisc_HDST.nck(c) and not c:IsCode(id)
...@@ -41,7 +39,7 @@ function s.rmcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -41,7 +39,7 @@ function s.rmcon(e,tp,eg,ep,ev,re,r,rp)
end end
function s.rmcost(e,tp,eg,ep,ev,re,r,rp,chk) function s.rmcost(e,tp,eg,ep,ev,re,r,rp,chk)
local rg=e:GetHandler():GetOverlayGroup() local rg=e:GetHandler():GetOverlayGroup()
if chk==0 then return e:GetHandler():CheckRemoveOverlayCard(tp,1,REASON_COST) and Duel.GetMatchingGroupCount(s.exfilter,tp,0,LOCATION_HAND,nil)>0 end if chk==0 then return e:GetHandler():CheckRemoveOverlayCard(tp,1,REASON_COST) and Duel.GetMatchingGroupCount(s.exfilter,tp,0,LOCATION_HAND,nil)>0 end
local hc=Duel.GetMatchingGroupCount(s.exfilter,tp,0,LOCATION_HAND,nil) local hc=Duel.GetMatchingGroupCount(s.exfilter,tp,0,LOCATION_HAND,nil)
if rg:GetCount()<hc then hc=rg:GetCount() end if rg:GetCount()<hc then hc=rg:GetCount() end
local ct=e:GetHandler():RemoveOverlayCard(tp,1,hc,REASON_COST) local ct=e:GetHandler():RemoveOverlayCard(tp,1,hc,REASON_COST)
...@@ -59,7 +57,6 @@ function s.rmop(e,tp,eg,ep,ev,re,r,rp) ...@@ -59,7 +57,6 @@ function s.rmop(e,tp,eg,ep,ev,re,r,rp)
if g:GetCount()>0 and ct then if g:GetCount()>0 and ct then
local sg=g:RandomSelect(tp,ct) local sg=g:RandomSelect(tp,ct)
Duel.ConfirmCards(tp,sg) Duel.ConfirmCards(tp,sg)
Duel.ShuffleHand(1-tp)
local tc=sg:GetFirst() local tc=sg:GetFirst()
while tc do while tc do
if VHisc_HDST.nck(tc) then Duel.Destroy(tc,REASON_EFFECT) end if VHisc_HDST.nck(tc) then Duel.Destroy(tc,REASON_EFFECT) end
...@@ -75,6 +72,7 @@ function s.rmop(e,tp,eg,ep,ev,re,r,rp) ...@@ -75,6 +72,7 @@ function s.rmop(e,tp,eg,ep,ev,re,r,rp)
end end
tc=sg:GetNext() tc=sg:GetNext()
end end
Duel.ShuffleHand(1-tp)
end end
end end
function s.fgfilter(c,code) function s.fgfilter(c,code)
......
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