Commit 0652c8c9 authored by salix5's avatar salix5

Merge pull request #418 from destdev/patch-5

update Ferret Flames
parents c452061c dff49292
...@@ -26,13 +26,8 @@ function c31044787.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -26,13 +26,8 @@ function c31044787.activate(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetMatchingGroup(c31044787.filter,tp,0,LOCATION_MZONE,nil) local g=Duel.GetMatchingGroup(c31044787.filter,tp,0,LOCATION_MZONE,nil)
local atk=g:GetSum(Card.GetAttack) local atk=g:GetSum(Card.GetAttack)
local lp=Duel.GetLP(tp) local lp=Duel.GetLP(tp)
local sg=Group.CreateGroup() local diff=atk-lp
while atk>lp and g:GetCount()>0 do if diff<=0 then return end
Duel.Hint(HINT_SELECTMSG,1-tp,HINTMSG_TODECK) local sg=g:SelectWithSumGreater(1-tp,Card.GetAttack,diff)
local tc=g:Select(1-tp,1,1,nil):GetFirst()
sg:AddCard(tc)
g:RemoveCard(tc)
atk=atk-tc:GetAttack()
end
Duel.SendtoDeck(sg,nil,2,REASON_RULE) Duel.SendtoDeck(sg,nil,2,REASON_RULE)
end 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