@@ -21,14 +21,14 @@ function s.initial_effect(c)
2121 Duel .RegisterEffect (ge1 ,0 )
2222 end )
2323end
24- s .listed_names = {160218019 }
24+ s .listed_names = {id } -- "Handbook to the Spiritual Arts"
2525function s .checkop (e ,tp ,eg ,ep ,ev ,re ,r ,rp )
26- if re :GetHandler ():IsCode (160218019 ) then
26+ if re :GetHandler ():IsCode (id ) then
2727 Duel .RegisterFlagEffect (rp ,id ,RESET_PHASE |PHASE_END ,0 ,1 )
2828 end
2929end
3030function s .condition (e ,tp ,eg ,ep ,ev ,re ,r ,rp )
31- return Duel .GetFlagEffect (tp ,id )== 0
31+ return not Duel .HasFlagEffect (tp ,id )
3232end
3333function s .target (e ,tp ,eg ,ep ,ev ,re ,r ,rp ,chk )
3434 if chk == 0 then return Duel .GetFieldGroupCount (tp ,LOCATION_DECK ,0 )>= 5 end
@@ -67,7 +67,7 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp)
6767 e2 :SetType (EFFECT_TYPE_FIELD + EFFECT_TYPE_CONTINUOUS )
6868 e2 :SetProperty (EFFECT_FLAG_CANNOT_DISABLE )
6969 e2 :SetCode (EVENT_ATTACK_ANNOUNCE )
70- e2 :SetOperation (s .checkop )
70+ e2 :SetOperation (s .diratkcheckop )
7171 e2 :SetReset (RESET_PHASE |PHASE_END )
7272 e2 :SetLabelObject (e1 )
7373 Duel .RegisterEffect (e2 ,tp )
8686function s .atktg (e ,c )
8787 return c :GetFieldID ()~= e :GetLabel ()
8888end
89- function s .checkop (e ,tp ,eg ,ep ,ev ,re ,r ,rp )
89+ function s .diratkcheckop (e ,tp ,eg ,ep ,ev ,re ,r ,rp )
9090 local tg = Duel .GetAttackTarget ()
9191 if tg == nil then
9292 local fid = eg :GetFirst ():GetFieldID ()
9393 e :GetLabelObject ():SetLabel (fid )
9494 end
95- end
95+ end
0 commit comments