22-- Grave of the Super Ancient Organism
33local s ,id = GetID ()
44function s .initial_effect (c )
5- -- activate
5+ -- Activate
66 local e1 = Effect .CreateEffect (c )
77 e1 :SetType (EFFECT_TYPE_ACTIVATE )
88 e1 :SetCode (EVENT_FREE_CHAIN )
9- e1 :SetHintTiming (0 ,TIMING_END_PHASE + TIMING_END_PHASE )
9+ e1 :SetHintTiming (0 ,TIMING_END_PHASE | TIMING_END_PHASE )
1010 c :RegisterEffect (e1 )
11- -- cannot attack
11+ -- Level 6 or higher Special Summoned monsters on the field cannot declare attacks
1212 local e2 = Effect .CreateEffect (c )
1313 e2 :SetType (EFFECT_TYPE_FIELD )
1414 e2 :SetCode (EFFECT_CANNOT_ATTACK_ANNOUNCE )
1515 e2 :SetRange (LOCATION_SZONE )
1616 e2 :SetTargetRange (LOCATION_MZONE ,LOCATION_MZONE )
1717 e2 :SetTarget (s .target )
1818 c :RegisterEffect (e2 )
19- -- cannot trigger
19+ -- Players cannot activate the effects of Level 6 or higher Special Summoned monsters
2020 local e3 = Effect .CreateEffect (c )
2121 e3 :SetType (EFFECT_TYPE_FIELD )
22- e3 :SetCode (EFFECT_CANNOT_TRIGGER )
22+ e3 :SetCode (EFFECT_CANNOT_ACTIVATE )
2323 e3 :SetRange (LOCATION_SZONE )
24- e3 :SetTargetRange (LOCATION_MZONE ,LOCATION_MZONE )
25- e3 :SetTarget (s .target )
24+ e3 :SetProperty (EFFECT_FLAG_PLAYER_TARGET )
25+ e3 :SetTargetRange (1 ,1 )
26+ e3 :SetValue (s .value )
2627 c :RegisterEffect (e3 )
2728end
2829function s .target (e ,c )
29- return c :GetLevel () >= 6 and c :IsSummonType ( SUMMON_TYPE_SPECIAL )
30+ return c :IsLevelAbove ( 6 ) and c :IsSpecialSummoned ( )
3031end
32+ function s .value (e ,re ,tp )
33+ local rc = re :GetHandler ()
34+ return re :IsMonsterEffect () and rc :IsOnField () and rc :IsLevelAbove (6 ) and rc :IsSpecialSummoned ()
35+ end
0 commit comments