Commit 08d9c33c authored by CubeRuler's avatar CubeRuler

fix

parent 1f06955d
Pipeline #2502 passed with stages
in 44 minutes and 55 seconds
......@@ -6,10 +6,10 @@ function cm.initial_effect(c)
rslf.SpecialSummonFunction(c,m,cm.con,cm.op,cm.buff)
end
function cm.con(e,tp)
return Duel.CheckReleaseGroup(tp,Card.IsSetCard,1,nil,0xa553)
return Duel.CheckReleaseGroup(tp,Card.IsSetCard,1,nil,0x2553)
end
function cm.op(e,tp)
local g=Duel.SelectReleaseGroup(tp,Card.IsSetCard,1,1,nil,0xa553)
local g=Duel.SelectReleaseGroup(tp,Card.IsSetCard,1,1,nil,0x2553)
Duel.Release(g,REASON_COST)
end
function cm.buff(c)
......@@ -24,14 +24,14 @@ function cm.lcon(e,tp)
return Duel.GetFieldGroupCount(tp,LOCATION_MZONE,0)<Duel.GetFieldGroupCount(tp,0,LOCATION_MZONE)
end
function cm.cfilter(c,e,tp)
return c:IsAbleToGrave() and c:IsFaceup() and c:IsSetCard(0xa553) and Duel.IsExistingMatchingCard(cm.cfilter2,tp,0,LOCATION_MZONE,1,nil,e,tp,c)
return c:IsAbleToGrave() and c:IsFaceup() and c:IsSetCard(0x2553) and Duel.IsExistingMatchingCard(cm.cfilter2,tp,0,LOCATION_MZONE,1,nil,e,tp,c)
end
function cm.cfilter2(c,e,tp,rc)
local g=Group.FromCards(c,rc)
return c:IsAbleToGrave() and c:IsFaceup() and Duel.GetLocationCountFromEx(tp,tp,g)>0 and Duel.IsExistingMatchingCard(cm.spfilter,tp,LOCATION_EXTRA,0,1,nil,g,e,tp)
end
function cm.spfilter(c,g,e,tp)
return c:IsType(TYPE_LINK) and c:IsCanBeSpecialSummoned(e,SUMMON_TYPE_LINK,tp,false,false) and (not g or g:FilterCount(Card.IsCanBeLinkMaterial,nil,c)==2) and c:IsSetCard(0xa553) and c:GetLink()==2
return c:IsType(TYPE_LINK) and c:IsCanBeSpecialSummoned(e,SUMMON_TYPE_LINK,tp,false,false) and (not g or g:FilterCount(Card.IsCanBeLinkMaterial,nil,c)==2) and c:IsSetCard(0x2553) and c:GetLink()==2
end
function cm.ltg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(cm.cfilter,tp,LOCATION_MZONE,0,1,nil,e,tp) end
......
......@@ -6,7 +6,7 @@ function cm.initial_effect(c)
rslf.SpecialSummonFunction(c,m,cm.con,cm.op,cm.buff)
end
function cm.cfilter(c)
return c:IsAbleToDeckAsCost() and c:IsSetCard(0xa553)
return c:IsAbleToDeckAsCost() and c:IsSetCard(0x2553)
end
function cm.con(e,tp)
return Duel.IsExistingMatchingCard(cm.cfilter,tp,LOCATION_HAND,0,1,nil)
......
......@@ -19,7 +19,7 @@ function cm.initial_effect(c)
end
function cm.val(e,c)
local f=function(rc)
return rc:IsFaceup() and rc:IsSetCard(0xa553)
return rc:IsFaceup() and rc:IsSetCard(0x2553)
end
return Duel.GetMatchingGroupCount(f,e:GetHandlerPlayer(),LOCATION_EXTRA,0,nil)*500
end
......@@ -43,10 +43,10 @@ function cm.imval(e,re)
return re:GetOwnerPlayer()~=e:GetOwnerPlayer() and re:IsActiveType(TYPE_MONSTER)
end
function cm.dfilter(c,tp)
return c:IsControler(tp) and c:IsReason(REASON_BATTLE+REASON_EFFECT) and c:IsSetCard(0xa553)
return c:IsControler(tp) and c:IsReason(REASON_BATTLE+REASON_EFFECT) and c:IsSetCard(2553)
end
function cm.repfilter(c)
return c:IsSetCard(0xa553) and c:IsAbleToDeck() and c:IsFaceup()
return c:IsSetCard(0x2553) and c:IsAbleToDeck() and c:IsFaceup()
end
function cm.destg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return eg:IsExists(cm.dfilter,1,nil,tp)
......@@ -54,7 +54,7 @@ function cm.destg(e,tp,eg,ep,ev,re,r,rp,chk)
return Duel.SelectEffectYesNo(tp,e:GetHandler(),96)
end
function cm.value(e,c)
return c:IsControler(e:GetHandlerPlayer()) and c:IsReason(REASON_BATTLE+REASON_EFFECT) and c:IsSetCard(0xa553)
return c:IsControler(e:GetHandlerPlayer()) and c:IsReason(REASON_BATTLE+REASON_EFFECT) and c:IsSetCard(0x2553)
end
function cm.desop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TODECK)
......
......@@ -28,7 +28,7 @@ function cm.damop(e,tp,eg,ep,ev,re,r,rp)
end
function cm.op(e,tp)
local c=e:GetHandler()
local mat=c:GetMaterial():Filter(Card.IsSetCard,nil,0xa553)
local mat=c:GetMaterial():Filter(Card.IsSetCard,nil,0x2553)
if #mat<=0 then return end
for tc in aux.Next(mat) do
local buff=tc.lflist
......
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