@@ -31,28 +31,27 @@ function s.initial_effect(c)
3131 Duel .RegisterEffect (ge1 ,0 )
3232 end )
3333end
34- s .listed_series = {0x119 }
35- s .listed_names = {}
34+ s .listed_series = {SET_SALAMANGREAT }
35+ s .listed_names = {id }
3636function 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
4444end
4545function 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 ())
4847end
4948function 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 ()))
5352end
5453function 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 )
5655end
5756function s .sptg (e ,tp ,eg ,ep ,ev ,re ,r ,rp ,chk ,chkc )
5857 if chkc then return false end
0 commit comments