@@ -53,4 +53,32 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp)
5353 Duel .HintSelection (g )
5454 Duel .SendtoHand (g ,nil ,REASON_EFFECT )
5555 end
56+ local e1 = Effect .CreateEffect (e :GetHandler ())
57+ e1 :SetDescription (aux .Stringid (id ,2 ))
58+ e1 :SetType (EFFECT_TYPE_FIELD )
59+ e1 :SetProperty (EFFECT_FLAG_IGNORE_IMMUNE + EFFECT_FLAG_CLIENT_HINT )
60+ e1 :SetCode (EFFECT_CANNOT_ATTACK_ANNOUNCE )
61+ e1 :SetTargetRange (LOCATION_MZONE ,0 )
62+ e1 :SetCondition (s .atkcon )
63+ e1 :SetTarget (s .atktg )
64+ e1 :SetReset (RESET_PHASE |PHASE_END )
65+ Duel .RegisterEffect (e1 ,tp )
66+ local e2 = Effect .CreateEffect (e :GetHandler ())
67+ e2 :SetType (EFFECT_TYPE_FIELD + EFFECT_TYPE_CONTINUOUS )
68+ e2 :SetProperty (EFFECT_FLAG_CANNOT_DISABLE )
69+ e2 :SetCode (EVENT_ATTACK_ANNOUNCE )
70+ e2 :SetOperation (s .checkop )
71+ e2 :SetReset (RESET_PHASE |PHASE_END )
72+ e2 :SetLabelObject (e1 )
73+ Duel .RegisterEffect (e2 ,tp )
74+ end
75+ function s .atkcon (e )
76+ return e :GetLabel ()~= 0
77+ end
78+ function s .atktg (e ,c )
79+ return c :GetFieldID ()~= e :GetLabel ()
80+ end
81+ function s .checkop (e ,tp ,eg ,ep ,ev ,re ,r ,rp )
82+ local fid = eg :GetFirst ():GetFieldID ()
83+ e :GetLabelObject ():SetLabel (fid )
5684end
0 commit comments