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)
c:RegisterEffect(e2)
end
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
function cm.efilter(e,re)
return re:GetHandler():IsSetCard(3298)
return not re:GetHandler():IsSetCard(0xce2)
end
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
function cm.value(e,c)
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)
if chk==0 then return Duel.IsExistingTarget(Card.IsAbleToHand,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RTOHAND)
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)
end
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)
return e:GetHandler():IsPreviousLocation(LOCATION_ONFIELD)
end
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
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
......
......@@ -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)
end
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
function cm.op(e,tp,eg,ep,ev,re,r,rp)
local g = Duel.GetMatchingGroup(cm.check,tp,LOCATION_DECK,0,nil)
......
......@@ -36,7 +36,7 @@ function cm.initial_effect(c)
c:RegisterEffect(e2)
end
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
function cm.spcon(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(cm.cfilter,1,nil,tp)
......@@ -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
end
function cm.mfilter(c)
return c:IsSetCard(3298)
return c:IsSetCard(0xce2)
end
function cm.sctg(e,tp,eg,ep,ev,re,r,rp,chk)
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