@@ -11,7 +11,7 @@ function s.initial_effect(c)
1111 e1 :SetRange (LOCATION_HAND )
1212 e1 :SetHintTiming (0 ,TIMING_BATTLE_START )
1313 e1 :SetCondition (function () return Duel .IsAbleToEnterBP () or (Duel .IsBattlePhase () and not Duel .IsPhase (PHASE_BATTLE )) end )
14- e1 :SetCost (aux . SelfToGraveCost )
14+ e1 :SetCost (Cost . SelfToGrave )
1515 e1 :SetTarget (s .efftg )
1616 e1 :SetOperation (s .effop )
1717 c :RegisterEffect (e1 )
@@ -23,11 +23,11 @@ function s.efftg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
2323 if chkc then return chkc :IsControler (tp ) and chkc :IsLocation (LOCATION_MZONE ) and s .tgfilter (chkc ) end
2424 if chk == 0 then return Duel .IsExistingTarget (s .tgfilter ,tp ,LOCATION_MZONE ,0 ,1 ,nil ) end
2525 Duel .Hint (HINT_SELECTMSG ,tp ,HINTMSG_APPLYTO )
26- Duel .SelectTarget (tp ,s .tgfilter ,tp ,LOCATION_MZONE ,0 ,tp ,1 ,nil )
26+ Duel .SelectTarget (tp ,s .tgfilter ,tp ,LOCATION_MZONE ,0 ,1 ,1 ,nil )
2727end
2828function s .effop (e ,tp ,eg ,ep ,ev ,re ,r ,rp ,chk )
2929 local tc = Duel .GetFirstTarget ()
30- if tc :IsRelateToEffect (e ) then
30+ if tc and tc :IsRelateToEffect (e ) then
3131 tc :RegisterFlagEffect (id ,RESETS_STANDARD_PHASE_END ,0 ,1 )
3232 -- It cannot be destroyed by battle this turn
3333 local e1 = Effect .CreateEffect (e :GetHandler ())
@@ -43,4 +43,4 @@ function s.effop(e,tp,eg,ep,ev,re,r,rp,chk)
4343 e2 :SetCode (EFFECT_AVOID_BATTLE_DAMAGE )
4444 tc :RegisterEffect (e2 )
4545 end
46- end
46+ end
0 commit comments