Commit 133e91b9 authored by Tachibana's avatar Tachibana

得得得得得

parent 7019c791
Pipeline #13489 passed with stages
in 26 minutes and 2 seconds
......@@ -54,7 +54,8 @@ function c33200433.spop(e,tp,eg,ep,ev,re,r,rp)
Duel.Draw(tp,1,REASON_EFFECT)
local tc=Duel.GetOperatedGroup():GetFirst()
Duel.ConfirmCards(1-tp,tc)
if tc:IsType(TYPE_SPELL) then Duel.SendtoGrave(tc,REASON_EFFECT) end
if tc:IsType(TYPE_SPELL) then Duel.SendtoGrave(tc,REASON_EFFECT) end
Duel.ShuffleHand(tp)
end
end
......
......@@ -65,20 +65,19 @@ function c33200436.atktg(e,tp,eg,ep,ev,re,r,rp,chk)
and g:GetCount()>0 end
end
function c33200436.atkop(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetMatchingGroup(c33200436.atkfilter,tp,0,LOCATION_MZONE,nil)
if g:GetCount()==0 then return end
for tc in aux.Next(g) do
local sg=Duel.GetMatchingGroup(c33200436.atkfilter,tp,0,LOCATION_MZONE,nil)
local g=Duel.GetMatchingGroup(Card.IsType,tp,0,LOCATION_GRAVE+LOCATION_REMOVED,nil,TYPE_SPELL)
if g:GetCount()==0 or sg:GetCount()==0 then return end
local atkval=g:GetCount()*-500
for tc in aux.Next(sg) do
local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_UPDATE_ATTACK)
e1:SetReset(RESET_EVENT+RESETS_STANDARD)
e1:SetValue(c33200436.atkval)
e1:SetValue(atkval)
tc:RegisterEffect(e1)
if tc:IsAttack(0) then Duel.Destroy(tc,REASON_EFFECT) end
end
end
function c33200436.atkval(e,c)
local g=Duel.GetMatchingGroup(Card.IsType,tp,0,LOCATION_GRAVE+LOCATION_REMOVED,nil,TYPE_SPELL)
return 0-500*g:GetCount()
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