@@ -9,14 +9,11 @@ function s.initial_effect(c)
99 e1 :SetProperty (EFFECT_FLAG_CARD_TARGET + EFFECT_FLAG_DAMAGE_STEP )
1010 e1 :SetCode (EVENT_FREE_CHAIN )
1111 e1 :SetHintTiming (TIMING_DAMAGE_STEP )
12- e1 :SetCondition (s . condition )
12+ e1 :SetCondition (aux . StatChangeDamageStepCondition )
1313 e1 :SetTarget (s .target )
1414 e1 :SetOperation (s .activate )
1515 c :RegisterEffect (e1 )
1616end
17- function s .condition (e ,tp ,eg ,ep ,ev ,re ,r ,rp )
18- return Duel .GetCurrentPhase ()~= PHASE_DAMAGE or not Duel .IsDamageCalculated ()
19- end
2017function s .target (e ,tp ,eg ,ep ,ev ,re ,r ,rp ,chk ,chkc )
2118 if chkc then return chkc :IsLocation (LOCATION_GRAVE ) and chkc :IsType (TYPE_XYZ ) end
2219 if chk == 0 then return Duel .IsExistingTarget (Card .IsType ,tp ,LOCATION_GRAVE ,LOCATION_GRAVE ,1 ,nil ,TYPE_XYZ )
@@ -30,8 +27,7 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
3027 local g = Duel .GetMatchingGroup (Card .IsFaceup ,tp ,LOCATION_MZONE ,0 ,nil )
3128 if # g > 0 and tc :IsRelateToEffect (e ) then
3229 local atk = tc :GetRank ()* 200
33- local sc = g :GetFirst ()
34- for sc in aux .Next (g ) do
30+ for sc in g :Iter () do
3531 local e1 = Effect .CreateEffect (e :GetHandler ())
3632 e1 :SetType (EFFECT_TYPE_SINGLE )
3733 e1 :SetCode (EFFECT_UPDATE_ATTACK )
0 commit comments