Commit 0a3a05e2 authored by Tachibana's avatar Tachibana

eme

parent 25f1c6fe
Pipeline #5866 passed with stages
in 25 minutes and 19 seconds
......@@ -35,7 +35,7 @@ function cm.spop(e,tp,eg,ep,ev,re,r,rp)
Duel.PayLPCost(tp,4000)
end
function cm.descon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetLP(tp)<Duel.GetLP(1-tp)+7000
return Duel.GetLP(tp)<(Duel.GetLP(1-tp)+7000)
end
function cm.destg(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler()
......
......@@ -8,6 +8,7 @@ function c85401480.initial_effect(c)
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetRange(LOCATION_MZONE)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetCountLimit(1)
e1:SetCondition(c85401480.cd)
e1:SetCost(c85401480.ct)
......@@ -71,12 +72,13 @@ end
function c85401480.tg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsControler(1-tp) and chkc:IsLocation(LOCATION_MZONE) and c85401480.gllq(chkc) end
if chk==0 then return Duel.IsExistingTarget(c85401480.gllq,tp,0,LOCATION_MZONE,1,nil,e) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY)
local g=Duel.SelectTarget(tp,c85401480.gllq,tp,0,LOCATION_MZONE,1,1,nil,e)
Duel.SetOperationInfo(0,CATEGORY_DESTROY,nil,1,0,0)
end
function c85401480.op(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY)
local g=Duel.SelectTarget(tp,c85401480.gllq,tp,0,LOCATION_MZONE,1,1,nil,e)
if g:GetCount()>0 then
local tc=Duel.GetFirstTarget()
if tc and tc:IsRelateToEffect(e) then
Duel.Destroy(g,REASON_EFFECT)
end
end
......
......@@ -92,13 +92,14 @@ end
function c85401660.tg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsControler(1-tp) and chkc:IsLocation(LOCATION_MZONE) and c85401660.gllq(chkc) end
if chk==0 then return Duel.IsExistingTarget(c85401660.gllq,tp,0,LOCATION_MZONE,1,nil,e) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY)
local g=Duel.SelectTarget(tp,c85401660.gllq,tp,0,LOCATION_MZONE,1,1,nil,e)
Duel.SetOperationInfo(0,CATEGORY_DESTROY,nil,1,0,0)
end
function c85401660.op(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY)
local g=Duel.SelectTarget(tp,c85401660.gllq,tp,0,LOCATION_MZONE,1,1,nil,e)
if g:GetCount()>0 then
Duel.Destroy(g,REASON_EFFECT)
local tc=Duel.GetFirstTarget()
if tc and tc:IsRelateToEffect(e) then
Duel.Destroy(tc,REASON_EFFECT)
end
end
function c85401660.destg(e,tp,eg,ep,ev,re,r,rp,chk)
......
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