33-- Scripted by Larry126
44local s ,id = GetID ()
55function s .initial_effect (c )
6- -- Activate
6+ -- Negate the activation of a Spell/Trap Card, and if you do, Set that card
77 local e1 = Effect .CreateEffect (c )
8- e1 :SetCategory (CATEGORY_NEGATE )
8+ e1 :SetDescription (aux .Stringid (id ,0 ))
9+ e1 :SetCategory (CATEGORY_NEGATE + CATEGORY_SET )
910 e1 :SetType (EFFECT_TYPE_ACTIVATE )
1011 e1 :SetCode (EVENT_CHAINING )
11- e1 :SetProperty (EFFECT_FLAG_DAMAGE_STEP + EFFECT_FLAG_DAMAGE_CAL )
1212 e1 :SetCondition (s .condition )
1313 e1 :SetTarget (s .target )
1414 e1 :SetOperation (s .activate )
1515 c :RegisterEffect (e1 )
1616end
1717function s .condition (e ,tp ,eg ,ep ,ev ,re ,r ,rp )
18- return re :IsHasType (EFFECT_TYPE_ACTIVATE ) and re :IsActiveType ( TYPE_TRAP + TYPE_SPELL ) and Duel .IsChainNegatable (ev )
18+ return re :IsHasType (EFFECT_TYPE_ACTIVATE ) and re :IsSpellTrapEffect ( ) and Duel .IsChainNegatable (ev )
1919end
2020function s .target (e ,tp ,eg ,ep ,ev ,re ,r ,rp ,chk )
2121 if chk == 0 then return true end
@@ -32,7 +32,7 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
3232 local e1 = Effect .CreateEffect (e :GetHandler ())
3333 e1 :SetType (EFFECT_TYPE_SINGLE )
3434 e1 :SetCode (EFFECT_CANNOT_TRIGGER )
35- e1 :SetReset (RESET_EVENT + RESETS_STANDARD + RESET_PHASE + PHASE_END )
35+ e1 :SetReset (RESETS_STANDARD_PHASE_END )
3636 rc :RegisterEffect (e1 )
3737 end
38- end
38+ end
0 commit comments