Commit 48c7dfba authored by nekrozar's avatar nekrozar

fix

parent 052ca2bc
...@@ -23,7 +23,10 @@ end ...@@ -23,7 +23,10 @@ end
function c2055403.activate(e,tp,eg,ep,ev,re,r,rp) function c2055403.activate(e,tp,eg,ep,ev,re,r,rp)
local g=eg:Filter(c2055403.filter,nil,tp):Filter(Card.IsRelateToEffect,nil,e) local g=eg:Filter(c2055403.filter,nil,tp):Filter(Card.IsRelateToEffect,nil,e)
if g:GetCount()>0 then if g:GetCount()>0 then
local ct=Duel.SendtoDeck(g,nil,2,REASON_EFFECT) Duel.SendtoDeck(g,nil,2,REASON_EFFECT)
local og=Duel.GetOperatedGroup()
local ct=og:FilterCount(Card.IsLocation,nil,LOCATION_DECK)
if ct>0 then
Duel.BreakEffect() Duel.BreakEffect()
if Duel.GetLP(tp)>=ct*1000 then if Duel.GetLP(tp)>=ct*1000 then
Duel.SetLP(tp,Duel.GetLP(tp)-ct*1000) Duel.SetLP(tp,Duel.GetLP(tp)-ct*1000)
...@@ -31,4 +34,5 @@ function c2055403.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -31,4 +34,5 @@ function c2055403.activate(e,tp,eg,ep,ev,re,r,rp)
Duel.SetLP(tp,0) Duel.SetLP(tp,0)
end end
end end
end
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