Skip to content

Commit 2129c54

Browse files
committed
added Space Folnir
1 parent e7bdeb4 commit 2129c54

File tree

2 files changed

+33
-1
lines changed

2 files changed

+33
-1
lines changed

proc_rush.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ if Duel.IsDuelType(DUEL_INVERTED_QUICK_PRIORITY) then
5252
end)()
5353
end
5454
function Card.IsCanChangePositionRush(c)
55-
return c:IsCanChangePosition() and not c:IsMaximumMode()
55+
return c:IsCanChangePosition() and not c:IsMaximumMode() and not c:IsHasEffect(EFFECT_CANNOT_CHANGE_POS_E)
5656
end
5757

5858
--Add function to simplify some effect

rush/c160020011.lua

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
--スペース・フェルニル
2+
--Space Folnir
3+
--scripted by YoshiDuels
4+
local s,id=GetID()
5+
function s.initial_effect(c)
6+
--atkup
7+
local e1=Effect.CreateEffect(c)
8+
e1:SetType(EFFECT_TYPE_SINGLE)
9+
e1:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
10+
e1:SetCode(EFFECT_UPDATE_ATTACK)
11+
e1:SetRange(LOCATION_MZONE)
12+
e1:SetValue(s.val)
13+
c:RegisterEffect(e1)
14+
--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)
23+
end
24+
function s.filter(c)
25+
return c:IsFaceup() and c:IsType(TYPE_FUSION) and not c:IsMaximumModeSide()
26+
end
27+
function s.val(e,c)
28+
return Duel.GetMatchingGroupCount(s.filter,c:GetControler(),LOCATION_MZONE,0,nil)*800
29+
end
30+
function s.target(e,c)
31+
return c:IsAttackPos() and c:IsRace(RACE_CYBERSE)
32+
end

0 commit comments

Comments
 (0)