Commit 48c7dfba authored by nekrozar's avatar nekrozar

fix

parent 052ca2bc
...@@ -23,12 +23,16 @@ end ...@@ -23,12 +23,16 @@ 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)
Duel.BreakEffect() local og=Duel.GetOperatedGroup()
if Duel.GetLP(tp)>=ct*1000 then local ct=og:FilterCount(Card.IsLocation,nil,LOCATION_DECK)
Duel.SetLP(tp,Duel.GetLP(tp)-ct*1000) if ct>0 then
else Duel.BreakEffect()
Duel.SetLP(tp,0) if Duel.GetLP(tp)>=ct*1000 then
Duel.SetLP(tp,Duel.GetLP(tp)-ct*1000)
else
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