@@ -4,25 +4,27 @@ local s,id=GetID()
44function s .initial_effect (c )
55 -- Activate
66 local e1 = Effect .CreateEffect (c )
7- e1 :SetType (EFFECT_TYPE_ACTIVATE )
8- e1 :SetProperty (EFFECT_FLAG_CARD_TARGET )
97 e1 :SetCategory (CATEGORY_ATKCHANGE )
8+ e1 :SetType (EFFECT_TYPE_ACTIVATE )
9+ e1 :SetProperty (EFFECT_FLAG_CARD_TARGET + EFFECT_FLAG_DAMAGE_STEP )
10+ e1 :SetHintTiming (TIMING_DAMAGE_STEP ,TIMING_DAMAGE_STEP + 0x1c0 )
1011 e1 :SetCode (EVENT_FREE_CHAIN )
11- e1 :SetTarget (s .target )
1212 e1 :SetCondition (s .condition )
13- e1 :SetOperation (s .operation )
13+ e1 :SetTarget (s .target )
14+ e1 :SetOperation (s .activate )
1415 c :RegisterEffect (e1 )
1516end
1617function s .condition (e ,tp ,eg ,ep ,ev ,re ,r ,rp )
1718 return Duel .IsAbleToEnterBP () or (Duel .GetCurrentPhase ()>= PHASE_BATTLE_START and Duel .GetCurrentPhase ()<= PHASE_BATTLE )
19+ and (Duel .GetCurrentPhase ()~= PHASE_DAMAGE or not Duel .IsDamageCalculated ())
1820end
1921function s .target (e ,tp ,eg ,ep ,ev ,re ,r ,rp ,chk ,chkc )
2022 if chkc then return chkc :IsLocation (LOCATION_MZONE ) and chkc :IsControler (tp ) and chkc :IsFaceup () end
2123 if chk == 0 then return Duel .IsExistingTarget (Card .IsFaceup ,tp ,LOCATION_MZONE ,LOCATION_MZONE ,1 ,nil ) end
2224 Duel .Hint (HINT_SELECTMSG ,tp ,HINTMSG_FACEUP )
2325 local g = Duel .SelectTarget (tp ,Card .IsFaceup ,tp ,LOCATION_MZONE ,LOCATION_MZONE ,1 ,1 ,nil )
2426end
25- function s .operation (e ,tp ,eg ,ep ,ev ,re ,r ,rp )
27+ function s .activate (e ,tp ,eg ,ep ,ev ,re ,r ,rp )
2628 local tc = Duel .GetFirstTarget ()
2729 if tc and tc :IsFaceup () and tc :IsRelateToEffect (e ) then
2830 local e1 = Effect .CreateEffect (tc )
0 commit comments