Commit 90eac737 authored by salix5's avatar salix5

fix

parent 8833e6b7
...@@ -15,7 +15,7 @@ end ...@@ -15,7 +15,7 @@ end
function c2055403.target(e,tp,eg,ep,ev,re,r,rp,chk) function c2055403.target(e,tp,eg,ep,ev,re,r,rp,chk)
local g=eg:Filter(c2055403.filter,nil,tp) local g=eg:Filter(c2055403.filter,nil,tp)
local ct=g:GetCount() local ct=g:GetCount()
if chk==0 then return ct>0 and Duel.GetLP(tp)>ct*1000 end if chk==0 then return ct>0 end
Duel.SetTargetCard(eg) Duel.SetTargetCard(eg)
Duel.SetOperationInfo(0,CATEGORY_TODECK,g,ct,0,0) Duel.SetOperationInfo(0,CATEGORY_TODECK,g,ct,0,0)
end end
...@@ -24,6 +24,10 @@ function c2055403.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -24,6 +24,10 @@ function c2055403.activate(e,tp,eg,ep,ev,re,r,rp)
if g:GetCount()>0 then if g:GetCount()>0 then
local ct=Duel.SendtoDeck(g,nil,2,REASON_EFFECT) local ct=Duel.SendtoDeck(g,nil,2,REASON_EFFECT)
Duel.BreakEffect() Duel.BreakEffect()
Duel.SetLP(tp,Duel.GetLP(tp)-ct*1000) if Duel.GetLP(tp)>=ct*1000 then
Duel.SetLP(tp,Duel.GetLP(tp)-ct*1000)
else
Duel.SetLP(0)
end
end end
end end
...@@ -23,6 +23,7 @@ function c82301904.initial_effect(c) ...@@ -23,6 +23,7 @@ function c82301904.initial_effect(c)
e3:SetCategory(CATEGORY_TOGRAVE+CATEGORY_DAMAGE) e3:SetCategory(CATEGORY_TOGRAVE+CATEGORY_DAMAGE)
e3:SetType(EFFECT_TYPE_IGNITION) e3:SetType(EFFECT_TYPE_IGNITION)
e3:SetRange(LOCATION_MZONE) e3:SetRange(LOCATION_MZONE)
e3:SetCountLimit(1)
e3:SetCost(c82301904.sgcost) e3:SetCost(c82301904.sgcost)
e3:SetTarget(c82301904.sgtg) e3:SetTarget(c82301904.sgtg)
e3:SetOperation(c82301904.sgop) e3:SetOperation(c82301904.sgop)
......
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