Skip to content

Commit cd769a5

Browse files
committed
fixed Space Folnir
1 parent 65c204d commit cd769a5

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed

rush/c160020011.lua

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,15 @@ function s.initial_effect(c)
1212
e1:SetValue(s.val)
1313
c:RegisterEffect(e1)
1414
--Cannot Change Battle Position
15-
local e1=Effect.CreateEffect(c)
16-
e1:SetType(EFFECT_TYPE_FIELD)
17-
e1:SetCode(EFFECT_CANNOT_CHANGE_POS_E)
18-
e1:SetProperty(EFFECT_FLAG_SET_AVAILABLE)
19-
e1:SetRange(LOCATION_MZONE)
20-
e1:SetTargetRange(LOCATION_MZONE,0)
21-
e1:SetTarget(s.target)
22-
c:RegisterEffect(e1)
15+
local e2=Effect.CreateEffect(c)
16+
e2:SetType(EFFECT_TYPE_FIELD)
17+
e2:SetCode(EFFECT_CANNOT_CHANGE_POS_E)
18+
e2:SetProperty(EFFECT_FLAG_SET_AVAILABLE)
19+
e2:SetRange(LOCATION_MZONE)
20+
e2:SetTargetRange(LOCATION_MZONE,0)
21+
e2:SetTarget(s.target)
22+
e2:SetValue(s.efilter)
23+
c:RegisterEffect(e2)
2324
end
2425
function s.filter(c)
2526
return c:IsFaceup() and c:IsType(TYPE_FUSION) and not c:IsMaximumModeSide()
@@ -29,4 +30,7 @@ function s.val(e,c)
2930
end
3031
function s.target(e,c)
3132
return c:IsAttackPos() and c:IsRace(RACE_CYBERSE)
33+
end
34+
function s.efilter(e,te)
35+
return te:GetOwnerPlayer()==e:GetOwnerPlayer()
3236
end

0 commit comments

Comments
 (0)