Skip to content

Commit 0b79350

Browse files
committed
Salamangreat Zebroid X (Anime)
1 parent 73ae12f commit 0b79350

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

unofficial/c511600335.lua

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,28 +31,27 @@ function s.initial_effect(c)
3131
Duel.RegisterEffect(ge1,0)
3232
end)
3333
end
34-
s.listed_series={0x119}
35-
s.listed_names={}
34+
s.listed_series={SET_SALAMANGREAT}
35+
s.listed_names={id}
3636
function s.checkop(e,tp,eg,ep,ev,re,r,rp)
3737
for ec in aux.Next(eg) do
3838
if ec:GetPreviousTypeOnField()&TYPE_LINK>0
39-
and ec:IsPreviousSetCard(0x119) and REASON_EFFECT&ec:GetReason()>0
39+
and ec:IsPreviousSetCard(SET_SALAMANGREAT) and REASON_EFFECT&ec:GetReason()>0
4040
and ec:GetPreviousControler()~=ec:GetReasonEffect():GetHandlerPlayer() then
4141
Duel.RegisterFlagEffect(ec:GetPreviousControler(),id,RESET_PHASE+PHASE_END,0,1)
4242
end
4343
end
4444
end
4545
function s.spcon(e,tp,eg,ep,ev,re,r,rp)
46-
local ph=Duel.GetCurrentPhase()
47-
return Duel.GetFlagEffect(tp,id)>0 and ph>=PHASE_MAIN1 and ph<=PHASE_MAIN2
46+
return Duel.GetFlagEffect(tp,id)>0 and (Duel.IsMainPhase() or Duel.IsBattlePhase())
4847
end
4948
function s.filter(c,e,tp)
50-
return c:IsSetCard(0x119) and c:IsLevelBelow(4) and not c:IsCode(id)
49+
return c:IsSetCard(SET_SALAMANGREAT) and c:IsLevelBelow(4) and not c:IsCode(id)
5150
and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
5251
and Duel.IsExistingMatchingCard(s.xyzfilter,tp,LOCATION_EXTRA,0,1,nil,Group.FromCards(c,e:GetHandler()))
5352
end
5453
function s.xyzfilter(c,mg)
55-
return c:IsSetCard(0x119) and c:IsType(TYPE_XYZ) and c:IsXyzSummonable(nil,mg,2,2)
54+
return c:IsSetCard(SET_SALAMANGREAT) and c:IsType(TYPE_XYZ) and c:IsXyzSummonable(nil,mg,2,2)
5655
end
5756
function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
5857
if chkc then return false end

0 commit comments

Comments
 (0)