Commit 5f77dc4f authored by mercury233's avatar mercury233

update not must pay lp cost

fix https://github.com/Fluorohydride/ygopro/issues/2397
parent 54b714f2
...@@ -22,8 +22,8 @@ function c31712840.spcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -22,8 +22,8 @@ function c31712840.spcon(e,tp,eg,ep,ev,re,r,rp)
end end
function c31712840.spcost(e,tp,eg,ep,ev,re,r,rp,chk) function c31712840.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
local lp=Duel.GetLP(tp) local lp=Duel.GetLP(tp)
if chk==0 then return Duel.CheckLPCost(tp,lp-10,true) end if chk==0 then return Duel.CheckLPCost(tp,lp-10) end
Duel.PayLPCost(tp,lp-10,true) Duel.PayLPCost(tp,lp-10)
end end
function c31712840.spfilter(c,e,tp) function c31712840.spfilter(c,e,tp)
return c:IsSetCard(0x107f) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP) return c:IsSetCard(0x107f) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP)
......
...@@ -12,8 +12,8 @@ function c32603633.initial_effect(c) ...@@ -12,8 +12,8 @@ function c32603633.initial_effect(c)
end end
function c32603633.cost(e,tp,eg,ep,ev,re,r,rp,chk) function c32603633.cost(e,tp,eg,ep,ev,re,r,rp,chk)
local lp=Duel.GetLP(tp) local lp=Duel.GetLP(tp)
if chk==0 then return Duel.CheckLPCost(tp,lp-100,true) end if chk==0 then return Duel.CheckLPCost(tp,lp-100) end
Duel.PayLPCost(tp,lp-100,true) Duel.PayLPCost(tp,lp-100)
end end
function c32603633.filter(c,e,tp) function c32603633.filter(c,e,tp)
return c:IsSetCard(0x3d) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsSetCard(0x3d) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
......
...@@ -25,9 +25,9 @@ function c86532744.condition(e,tp,eg,ep,ev,re,r,rp) ...@@ -25,9 +25,9 @@ function c86532744.condition(e,tp,eg,ep,ev,re,r,rp)
end end
function c86532744.cost(e,tp,eg,ep,ev,re,r,rp,chk) function c86532744.cost(e,tp,eg,ep,ev,re,r,rp,chk)
local lp=Duel.GetLP(tp) local lp=Duel.GetLP(tp)
if chk==0 then return Duel.CheckLPCost(tp,lp-10,true) and e:GetHandler():CheckRemoveOverlayCard(tp,3,REASON_COST) end if chk==0 then return Duel.CheckLPCost(tp,lp-10) and e:GetHandler():CheckRemoveOverlayCard(tp,3,REASON_COST) end
e:GetHandler():RemoveOverlayCard(tp,3,3,REASON_COST) e:GetHandler():RemoveOverlayCard(tp,3,3,REASON_COST)
Duel.PayLPCost(tp,lp-10,true) Duel.PayLPCost(tp,lp-10)
end end
function c86532744.filter(c) function c86532744.filter(c)
return c:IsAbleToRemove() return c:IsAbleToRemove()
......
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