Skip to content

Commit d350a88

Browse files
committed
"Grave of the Super Ancient Organism" fix
- fixed a bug where monsters unaffected by Trap effects would still be able to activate their effects, when they should not be able to do it.
1 parent 2ba05dd commit d350a88

File tree

1 file changed

+13
-8
lines changed

1 file changed

+13
-8
lines changed

official/c83266092.lua

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,29 +2,34 @@
22
--Grave of the Super Ancient Organism
33
local s,id=GetID()
44
function 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)
2728
end
2829
function s.target(e,c)
29-
return c:GetLevel()>=6 and c:IsSummonType(SUMMON_TYPE_SPECIAL)
30+
return c:IsLevelAbove(6) and c:IsSpecialSummoned()
3031
end
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

Comments
 (0)