Commit b1057ced authored by songtongtong's avatar songtongtong

bug fix

parent 52fdb07f
Pipeline #22301 passed with stages
in 23 minutes and 17 seconds
...@@ -53,13 +53,13 @@ function cm.initial_effect(c) ...@@ -53,13 +53,13 @@ function cm.initial_effect(c)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function cm.matfilter1(c,syncard) function cm.matfilter1(c,syncard)
return (c:IsTuner(syncard) or c:IsSynchroType(TYPE_SYNCHRO)) and c:IsSetCard(3298) return (c:IsTuner(syncard) or c:IsSynchroType(TYPE_SYNCHRO)) and c:IsSetCard(0xce2)
end end
function cm.efilter(e,re) function cm.efilter(e,re)
return re:GetHandler():IsSetCard(3298) return not re:GetHandler():IsSetCard(0xce2)
end end
function cm.check(c) function cm.check(c)
return c:IsSetCard(3298) and (c:IsLocation(LOCATION_GRAVE) or c:IsFaceup()) return c:IsSetCard(0xce2) and (c:IsLocation(LOCATION_GRAVE) or c:IsFaceup())
end end
function cm.value(e,c) function cm.value(e,c)
return Duel.GetMatchingGroupCount(cm.check,0,LOCATION_REMOVED+LOCATION_ONFIELD+LOCATION_GRAVE,LOCATION_REMOVED+LOCATION_ONFIELD+LOCATION_GRAVE)*500 return Duel.GetMatchingGroupCount(cm.check,0,LOCATION_REMOVED+LOCATION_ONFIELD+LOCATION_GRAVE,LOCATION_REMOVED+LOCATION_ONFIELD+LOCATION_GRAVE)*500
...@@ -72,6 +72,7 @@ function cm.thtg1(e,tp,eg,ep,ev,re,r,rp,chk,chkc) ...@@ -72,6 +72,7 @@ function cm.thtg1(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chk==0 then return Duel.IsExistingTarget(Card.IsAbleToHand,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,nil) end if chk==0 then return Duel.IsExistingTarget(Card.IsAbleToHand,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RTOHAND) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RTOHAND)
local sg=Duel.SelectTarget(tp,Card.IsAbleToHand,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,ct,nil) local sg=Duel.SelectTarget(tp,Card.IsAbleToHand,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,ct,nil)
Duel.SetTargetCard(sg)
Duel.SetOperationInfo(0,CATEGORY_TOHAND,sg,sg:GetCount(),0,0) Duel.SetOperationInfo(0,CATEGORY_TOHAND,sg,sg:GetCount(),0,0)
end end
function cm.thop1(e,tp,eg,ep,ev,re,r,rp) function cm.thop1(e,tp,eg,ep,ev,re,r,rp)
...@@ -84,7 +85,7 @@ function cm.thcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -84,7 +85,7 @@ function cm.thcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsPreviousLocation(LOCATION_ONFIELD) return e:GetHandler():IsPreviousLocation(LOCATION_ONFIELD)
end end
function cm.thfilter(c) function cm.thfilter(c)
return c:IsSetCard(3298) and c:IsFaceup() and c:IsType(TYPE_SPELL) and c:IsAbleToHand() return c:IsSetCard(0xce2) and c:IsFaceup() and c:IsType(TYPE_SPELL) and c:IsAbleToHand()
end end
function cm.thtg(e,tp,eg,ep,ev,re,r,rp,chk) function cm.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(cm.thfilter,tp,LOCATION_REMOVED,0,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(cm.thfilter,tp,LOCATION_REMOVED,0,1,nil) end
......
...@@ -23,7 +23,7 @@ function cm.tg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -23,7 +23,7 @@ function cm.tg(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK) Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK)
end end
function cm.check(c) function cm.check(c)
return c:IsAbleToHand() and c:IsSetCard(3298) and not c:IsCode(m) return c:IsAbleToHand() and c:IsSetCard(0xce2) and not c:IsCode(m)
end end
function cm.op(e,tp,eg,ep,ev,re,r,rp) function cm.op(e,tp,eg,ep,ev,re,r,rp)
local g = Duel.GetMatchingGroup(cm.check,tp,LOCATION_DECK,0,nil) local g = Duel.GetMatchingGroup(cm.check,tp,LOCATION_DECK,0,nil)
......
...@@ -36,7 +36,7 @@ function cm.initial_effect(c) ...@@ -36,7 +36,7 @@ function cm.initial_effect(c)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function cm.cfilter(c,tp) function cm.cfilter(c,tp)
return c:IsFaceup() and c:IsSetCard(3298) and c:IsSummonPlayer(tp) return c:IsFaceup() and c:IsSetCard(0xce2) and c:IsSummonPlayer(tp)
end end
function cm.spcon(e,tp,eg,ep,ev,re,r,rp) function cm.spcon(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(cm.cfilter,1,nil,tp) return eg:IsExists(cm.cfilter,1,nil,tp)
...@@ -58,7 +58,7 @@ function cm.sccon(e,tp,eg,ep,ev,re,r,rp) ...@@ -58,7 +58,7 @@ function cm.sccon(e,tp,eg,ep,ev,re,r,rp)
return ph==PHASE_MAIN1 or (ph>=PHASE_BATTLE_START and ph<=PHASE_BATTLE) or ph==PHASE_MAIN2 return ph==PHASE_MAIN1 or (ph>=PHASE_BATTLE_START and ph<=PHASE_BATTLE) or ph==PHASE_MAIN2
end end
function cm.mfilter(c) function cm.mfilter(c)
return c:IsSetCard(3298) return c:IsSetCard(0xce2)
end end
function cm.sctg(e,tp,eg,ep,ev,re,r,rp,chk) function cm.sctg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then if chk==0 then
......
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