Commit 9f812e23 authored by DailyShana's avatar DailyShana

fix

parent 07385bba
...@@ -68,7 +68,7 @@ function c21598948.mtcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -68,7 +68,7 @@ function c21598948.mtcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetTurnPlayer()==tp return Duel.GetTurnPlayer()==tp
end end
function c21598948.mtop(e,tp,eg,ep,ev,re,r,rp) function c21598948.mtop(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetLP(tp)>500 and Duel.SelectYesNo(tp,aux.Stringid(21598948,1)) then if Duel.CheckLPCost(tp,500) and Duel.SelectYesNo(tp,aux.Stringid(21598948,1)) then
Duel.PayLPCost(tp,500) Duel.PayLPCost(tp,500)
else else
Duel.Destroy(e:GetHandler(),REASON_COST) Duel.Destroy(e:GetHandler(),REASON_COST)
......
...@@ -68,7 +68,7 @@ function c22359980.mtcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -68,7 +68,7 @@ function c22359980.mtcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetTurnPlayer()==tp return Duel.GetTurnPlayer()==tp
end end
function c22359980.mtop(e,tp,eg,ep,ev,re,r,rp) function c22359980.mtop(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetLP(tp)>2000 and Duel.SelectYesNo(tp,aux.Stringid(22359980,0)) then if Duel.CheckLPCost(tp,2000) and Duel.SelectYesNo(tp,aux.Stringid(22359980,0)) then
Duel.PayLPCost(tp,2000) Duel.PayLPCost(tp,2000)
else else
Duel.Destroy(e:GetHandler(),REASON_COST) Duel.Destroy(e:GetHandler(),REASON_COST)
......
...@@ -48,7 +48,7 @@ function c24874630.descon(e,tp,eg,ep,ev,re,r,rp) ...@@ -48,7 +48,7 @@ function c24874630.descon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetTurnPlayer()==tp return Duel.GetTurnPlayer()==tp
end end
function c24874630.desop(e,tp,eg,ep,ev,re,r,rp) function c24874630.desop(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetLP(tp)>1000 and Duel.SelectYesNo(tp,aux.Stringid(24874630,0)) then if Duel.CheckLPCost(tp,1000) and Duel.SelectYesNo(tp,aux.Stringid(24874630,0)) then
Duel.PayLPCost(tp,1000) Duel.PayLPCost(tp,1000)
else else
Duel.Destroy(e:GetHandler(),REASON_COST) Duel.Destroy(e:GetHandler(),REASON_COST)
......
...@@ -55,7 +55,7 @@ function c32907538.mtcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -55,7 +55,7 @@ function c32907538.mtcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetTurnPlayer()==tp return Duel.GetTurnPlayer()==tp
end end
function c32907538.mtop(e,tp,eg,ep,ev,re,r,rp) function c32907538.mtop(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetLP(tp)>500 and Duel.SelectYesNo(tp,aux.Stringid(32907538,0)) then if Duel.CheckLPCost(tp,500) and Duel.SelectYesNo(tp,aux.Stringid(32907538,0)) then
Duel.PayLPCost(tp,500) Duel.PayLPCost(tp,500)
else else
Duel.Destroy(e:GetHandler(),REASON_COST) Duel.Destroy(e:GetHandler(),REASON_COST)
......
...@@ -101,7 +101,7 @@ function c33900648.mtcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -101,7 +101,7 @@ function c33900648.mtcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetTurnPlayer()==tp return Duel.GetTurnPlayer()==tp
end end
function c33900648.mtop(e,tp,eg,ep,ev,re,r,rp) function c33900648.mtop(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetLP(tp)>500 and Duel.SelectYesNo(tp,aux.Stringid(33900648,0)) then if Duel.CheckLPCost(tp,500) and Duel.SelectYesNo(tp,aux.Stringid(33900648,0)) then
Duel.PayLPCost(tp,500) Duel.PayLPCost(tp,500)
else else
Duel.Destroy(e:GetHandler(),REASON_COST) Duel.Destroy(e:GetHandler(),REASON_COST)
......
...@@ -31,7 +31,7 @@ function c44656491.mtcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -31,7 +31,7 @@ function c44656491.mtcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetTurnPlayer()==tp return Duel.GetTurnPlayer()==tp
end end
function c44656491.mtop(e,tp,eg,ep,ev,re,r,rp) function c44656491.mtop(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetLP(tp)>100 and Duel.SelectYesNo(tp,aux.Stringid(44656491,0)) then if Duel.CheckLPCost(tp,100) and Duel.SelectYesNo(tp,aux.Stringid(44656491,0)) then
Duel.PayLPCost(tp,100) Duel.PayLPCost(tp,100)
else else
Duel.Destroy(e:GetHandler(),REASON_COST) Duel.Destroy(e:GetHandler(),REASON_COST)
......
...@@ -30,7 +30,7 @@ function c61650133.mtcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -30,7 +30,7 @@ function c61650133.mtcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetTurnPlayer()==tp return Duel.GetTurnPlayer()==tp
end end
function c61650133.mtop(e,tp,eg,ep,ev,re,r,rp) function c61650133.mtop(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetLP(tp)>500 and Duel.SelectYesNo(tp,aux.Stringid(61650133,0)) then if Duel.CheckLPCost(tp,500) and Duel.SelectYesNo(tp,aux.Stringid(61650133,0)) then
Duel.PayLPCost(tp,500) Duel.PayLPCost(tp,500)
else else
Duel.Destroy(e:GetHandler(),REASON_COST) Duel.Destroy(e:GetHandler(),REASON_COST)
......
...@@ -44,7 +44,7 @@ function c61740673.mtcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -44,7 +44,7 @@ function c61740673.mtcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetTurnPlayer()==tp return Duel.GetTurnPlayer()==tp
end end
function c61740673.mtop(e,tp,eg,ep,ev,re,r,rp) function c61740673.mtop(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetLP(tp)>700 and Duel.SelectYesNo(tp,aux.Stringid(61740673,0)) then if Duel.CheckLPCost(tp,700) and Duel.SelectYesNo(tp,aux.Stringid(61740673,0)) then
Duel.PayLPCost(tp,700) Duel.PayLPCost(tp,700)
else else
Duel.Destroy(e:GetHandler(),REASON_COST) Duel.Destroy(e:GetHandler(),REASON_COST)
......
...@@ -31,7 +31,7 @@ function c80604091.cost1(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -31,7 +31,7 @@ function c80604091.cost1(e,tp,eg,ep,ev,re,r,rp,chk)
local tn=Duel.GetTurnPlayer() local tn=Duel.GetTurnPlayer()
local ph=Duel.GetCurrentPhase() local ph=Duel.GetCurrentPhase()
if ((tn==tp and (ph==PHASE_MAIN1 or ph==PHASE_MAIN2)) or (tn~=tp and ph>=PHASE_BATTLE_START and ph<=PHASE_BATTLE)) if ((tn==tp and (ph==PHASE_MAIN1 or ph==PHASE_MAIN2)) or (tn~=tp and ph>=PHASE_BATTLE_START and ph<=PHASE_BATTLE))
and Duel.GetLP(tp)>=500 and Duel.CheckLPCost(tp,500)
and Duel.IsExistingMatchingCard(c80604091.filter,tp,LOCATION_HAND+LOCATION_MZONE,0,1,nil) and Duel.IsExistingMatchingCard(c80604091.filter,tp,LOCATION_HAND+LOCATION_MZONE,0,1,nil)
and Duel.SelectYesNo(tp,aux.Stringid(80604091,1)) then and Duel.SelectYesNo(tp,aux.Stringid(80604091,1)) then
Duel.PayLPCost(tp,500) Duel.PayLPCost(tp,500)
......
...@@ -55,7 +55,7 @@ function c82432018.mtcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -55,7 +55,7 @@ function c82432018.mtcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetTurnPlayer()==tp return Duel.GetTurnPlayer()==tp
end end
function c82432018.mtop(e,tp,eg,ep,ev,re,r,rp) function c82432018.mtop(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetLP(tp)>1000 and Duel.SelectYesNo(tp,aux.Stringid(82432018,0)) then if Duel.CheckLPCost(tp,1000) and Duel.SelectYesNo(tp,aux.Stringid(82432018,0)) then
Duel.PayLPCost(tp,1000) Duel.PayLPCost(tp,1000)
else else
Duel.Destroy(e:GetHandler(),REASON_COST) Duel.Destroy(e:GetHandler(),REASON_COST)
......
...@@ -26,7 +26,7 @@ function c85060248.mtcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -26,7 +26,7 @@ function c85060248.mtcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetTurnPlayer()==tp return Duel.GetTurnPlayer()==tp
end end
function c85060248.mtop(e,tp,eg,ep,ev,re,r,rp) function c85060248.mtop(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetLP(tp)>500 and Duel.SelectYesNo(tp,aux.Stringid(85060248,0)) then if Duel.CheckLPCost(tp,500) and Duel.SelectYesNo(tp,aux.Stringid(85060248,0)) then
Duel.PayLPCost(tp,500) Duel.PayLPCost(tp,500)
else else
Duel.Destroy(e:GetHandler(),REASON_COST) Duel.Destroy(e:GetHandler(),REASON_COST)
......
...@@ -52,7 +52,7 @@ function c92394653.mtcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -52,7 +52,7 @@ function c92394653.mtcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetTurnPlayer()==tp return Duel.GetTurnPlayer()==tp
end end
function c92394653.mtop(e,tp,eg,ep,ev,re,r,rp) function c92394653.mtop(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetLP(tp)>500 and Duel.SelectYesNo(tp,aux.Stringid(92394653,1)) then if Duel.CheckLPCost(tp,500) and Duel.SelectYesNo(tp,aux.Stringid(92394653,1)) then
Duel.PayLPCost(tp,500) Duel.PayLPCost(tp,500)
else else
Duel.Destroy(e:GetHandler(),REASON_COST) Duel.Destroy(e:GetHandler(),REASON_COST)
......
...@@ -79,7 +79,7 @@ function c94804055.mtcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -79,7 +79,7 @@ function c94804055.mtcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetTurnPlayer()==tp return Duel.GetTurnPlayer()==tp
end end
function c94804055.mtop(e,tp,eg,ep,ev,re,r,rp) function c94804055.mtop(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetLP(tp)>500 and Duel.SelectYesNo(tp,aux.Stringid(94804055,2)) then if Duel.CheckLPCost(tp,500) and Duel.SelectYesNo(tp,aux.Stringid(94804055,2)) then
Duel.PayLPCost(tp,500) Duel.PayLPCost(tp,500)
else else
Duel.Destroy(e:GetHandler(),REASON_COST) Duel.Destroy(e:GetHandler(),REASON_COST)
......
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