Commit d3283871 authored by Satty's avatar Satty

fix

parent 9ff876d1
Pipeline #39121 failed with stages
in 6 minutes and 46 seconds
...@@ -66,13 +66,13 @@ function s.condition(e,tp,eg,ep,ev,re,r,rp) ...@@ -66,13 +66,13 @@ function s.condition(e,tp,eg,ep,ev,re,r,rp)
return not Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_MZONE+LOCATION_GRAVE,0,1,nil) return not Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_MZONE+LOCATION_GRAVE,0,1,nil)
end end
function s.target(e,tp,eg,ep,ev,re,r,rp,chk) function s.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(aux.TRUE,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(aux.TRUE,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,e:GetHandler()) end
local g=Duel.GetMatchingGroup(aux.TRUE,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,nil) local g=Duel.GetMatchingGroup(aux.TRUE,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,e:GetHandler())
Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,1,0,0) Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,1,0,0)
end end
function s.activate(e,tp,eg,ep,ev,re,r,rp) function s.activate(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY)
local g=Duel.SelectMatchingCard(tp,aux.TRUE,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,2,nil) local g=Duel.SelectMatchingCard(tp,aux.TRUE,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,2,e:GetHandler())
if #g>0 then if #g>0 then
Duel.HintSelection(g) Duel.HintSelection(g)
Duel.Destroy(g,REASON_EFFECT) Duel.Destroy(g,REASON_EFFECT)
......
...@@ -22,7 +22,7 @@ function cm.initial_effect(c) ...@@ -22,7 +22,7 @@ function cm.initial_effect(c)
e2:SetCost(aux.bfgcost) e2:SetCost(aux.bfgcost)
e2:SetTarget(cm.thtg) e2:SetTarget(cm.thtg)
e2:SetOperation(cm.thop) e2:SetOperation(cm.thop)
c:RegisterEffect(e2) --c:RegisterEffect(e2)
end end
function cm.mgfilter(c) function cm.mgfilter(c)
return c:IsFaceup() return c:IsFaceup()
......
...@@ -15,9 +15,11 @@ function cm.initial_effect(c) ...@@ -15,9 +15,11 @@ function cm.initial_effect(c)
local e2=Effect.CreateEffect(c) local e2=Effect.CreateEffect(c)
e2:SetCategory(CATEGORY_DESTROY) e2:SetCategory(CATEGORY_DESTROY)
e2:SetType(EFFECT_TYPE_IGNITION) e2:SetType(EFFECT_TYPE_QUICK_O)
e2:SetCode(EVENT_FREE_CHAIN)
e2:SetRange(LOCATION_MZONE) e2:SetRange(LOCATION_MZONE)
e2:SetCountLimit(1,m+1) e2:SetCountLimit(1)
e2:SetCondition(cm.con)
e2:SetTarget(cm.destg) e2:SetTarget(cm.destg)
e2:SetOperation(cm.desop) e2:SetOperation(cm.desop)
c:RegisterEffect(e2) c:RegisterEffect(e2)
...@@ -32,6 +34,9 @@ function cm.initial_effect(c) ...@@ -32,6 +34,9 @@ function cm.initial_effect(c)
e3:SetOperation(cm.atkop2) e3:SetOperation(cm.atkop2)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
function cm.con(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetCurrentPhase()==PHASE_MAIN1 or Duel.GetCurrentPhase()==PHASE_MAIN2
end
function cm.atkcon2(e,tp,eg,ep,ev,re,r,rp) function cm.atkcon2(e,tp,eg,ep,ev,re,r,rp)
return re:GetHandler():IsControler(1-tp) return re:GetHandler():IsControler(1-tp)
end end
......
...@@ -20,7 +20,7 @@ function s.sprule(c) ...@@ -20,7 +20,7 @@ function s.sprule(c)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function s.sprfilter(c) function s.sprfilter(c)
return c:IsFaceupEx() and c:IsSetCard(0xce4,0x9ca4) and c:IsAbleToExtra() return c:IsFaceupEx() and c:IsSetCard(0x6ce1,0x9ca4) and c:IsAbleToExtra()
end end
function s.fselect(g,tp,sc) function s.fselect(g,tp,sc)
return Duel.GetLocationCountFromEx(tp,tp,g,sc)>0 and g:IsExists(Card.IsLocation,1,nil,LOCATION_MZONE) return Duel.GetLocationCountFromEx(tp,tp,g,sc)>0 and g:IsExists(Card.IsLocation,1,nil,LOCATION_MZONE)
...@@ -76,7 +76,7 @@ function s.todeck(c) ...@@ -76,7 +76,7 @@ function s.todeck(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function s.tdfilter(c,tp) function s.tdfilter(c,tp)
return c:IsSetCard(0xce4,0x9ca4) and c:IsType(TYPE_MONSTER) and c:IsPreviousControler(tp) and c:IsFaceupEx() return c:IsSetCard(0x6ce1,0x9ca4) and c:IsType(TYPE_MONSTER) and c:IsPreviousControler(tp) and c:IsFaceupEx()
end end
function s.tdcon(e,tp,eg,ep,ev,re,r,rp) function s.tdcon(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(s.tdfilter,1,e:GetHandler(),tp) return eg:IsExists(s.tdfilter,1,e:GetHandler(),tp)
...@@ -110,7 +110,7 @@ function s.replace(c) ...@@ -110,7 +110,7 @@ function s.replace(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function s.desrepfilter(c) function s.desrepfilter(c)
return c:IsSetCard(0xce4,0xce3) and c:IsAbleToRemove() and not c:IsHasEffect(EFFECT_NECRO_VALLEY) return c:IsSetCard(0x6ce1,0x5ce1) and c:IsAbleToRemove() and not c:IsHasEffect(EFFECT_NECRO_VALLEY)
end end
function s.desreptg(e,tp,eg,ep,ev,re,r,rp,chk) function s.desreptg(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler() local c=e:GetHandler()
...@@ -157,7 +157,7 @@ function s.damage(c) ...@@ -157,7 +157,7 @@ function s.damage(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function s.rmfilter(c) function s.rmfilter(c)
return c:IsSetCard(0xce4,0xce3) and c:IsAbleToRemoveAsCost() return c:IsSetCard(0x6ce1,0x5ce1) and c:IsAbleToRemoveAsCost()
end end
function s.dmgcost(e,tp,eg,ep,ev,re,r,rp,chk) function s.dmgcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(s.rmfilter,tp,LOCATION_GRAVE,0,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(s.rmfilter,tp,LOCATION_GRAVE,0,1,nil) end
......
...@@ -72,7 +72,7 @@ function s.spsummon(c) ...@@ -72,7 +72,7 @@ function s.spsummon(c)
end end
function s.spcon(e,tp,eg,ep,ev,re,r,rp) function s.spcon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
return c:IsReason(REASON_DESTROY) and c:IsPreviousLocation(LOCATION_MZONE) and c:GetPreviousOverlayCountOnField()>0 return c:IsReason(REASON_DESTROY) and c:GetPreviousOverlayCountOnField()>0
end end
function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
......
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