Commit 9c12ef04 authored by salix5's avatar salix5
parent a648ebb2
...@@ -69,13 +69,10 @@ function c15447747.atktg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -69,13 +69,10 @@ function c15447747.atktg(e,tp,eg,ep,ev,re,r,rp,chk)
end end
function c15447747.atkop(e,tp,eg,ep,ev,re,r,rp) function c15447747.atkop(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetAttacker() local tc=Duel.GetAttacker()
local g=Duel.GetMatchingGroup(c15447747.tdfilter,tp,LOCATION_GRAVE,0,nil)
if #g==0 then return end
local ct=math.min(#g,math.floor(tc:GetAttack()/100))
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TODECK) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TODECK)
local sg=g:Select(tp,1,ct,nil) local g=Duel.SelectMatchingCard(tp,c15447747.tdfilter,tp,LOCATION_GRAVE,0,1,99,nil)
if Duel.SendtoDeck(sg,nil,2,REASON_EFFECT)==0 then return end local ct=#g
local ct=Duel.GetOperatedGroup():GetCount() if Duel.SendtoDeck(g,nil,2,REASON_EFFECT)==0 then return end
if tc:IsFaceup() and tc:IsRelateToBattle() and ct>0 then if tc:IsFaceup() and tc:IsRelateToBattle() and ct>0 then
local e1=Effect.CreateEffect(e:GetHandler()) local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_SINGLE) e1:SetType(EFFECT_TYPE_SINGLE)
......
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