Skip to content

Commit f705a8c

Browse files
authored
Update c511010701.lua
1 parent f38acd1 commit f705a8c

1 file changed

Lines changed: 7 additions & 9 deletions

File tree

unofficial/c511010701.lua

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,21 @@
33
--added by ClaireStanfield
44
local s,id=GetID()
55
function s.initial_effect(c)
6-
--indestructable
6+
--Cannot be destroyed by Spell effects that do not target it
77
local e1=Effect.CreateEffect(c)
88
e1:SetType(EFFECT_TYPE_SINGLE)
99
e1:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
10-
e1:SetRange(LOCATION_MZONE)
1110
e1:SetCode(EFFECT_INDESTRUCTABLE_EFFECT)
12-
e1:SetValue(s.ind1)
11+
e1:SetRange(LOCATION_MZONE)
12+
e1:SetValue(s.indval)
1313
c:RegisterEffect(e1)
14+
--Cannot be destroyed by battle
1415
local e2=Effect.CreateEffect(c)
1516
e2:SetType(EFFECT_TYPE_SINGLE)
1617
e2:SetCode(EFFECT_INDESTRUCTABLE_BATTLE)
17-
e2:SetValue(s.ind2)
18+
e2:SetValue(1)
1819
c:RegisterEffect(e2)
1920
end
20-
function s.ind1(e,re,rp,c)
21-
return not re:IsHasProperty(EFFECT_FLAG_CARD_TARGET) and re:IsActiveType(TYPE_SPELL+TYPE_TRAP)
21+
function s.indval(e,re,rp,c)
22+
return not re:IsHasProperty(EFFECT_FLAG_CARD_TARGET) and re:IsSpellEffect()
2223
end
23-
function s.ind2(e,c)
24-
return c:IsAttackBelow(1900)
25-
end

0 commit comments

Comments
 (0)