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