Skip to content

Commit 5b6194a

Browse files
authored
Update "Mirror Labyrinth"
- Added check for Level 5 or higher monsters - Script modernization update
1 parent 7da0676 commit 5b6194a

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

unofficial/c511000840.lua

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,23 @@
1+
--鏡の迷宮-ミラー・ラビリンス
12
--Mirror Labyrinth
23
local s,id=GetID()
34
function s.initial_effect(c)
4-
--activate
5+
--Activate
56
local e1=Effect.CreateEffect(c)
67
e1:SetType(EFFECT_TYPE_ACTIVATE)
78
e1:SetCode(EVENT_FREE_CHAIN)
89
c:RegisterEffect(e1)
9-
--multi attack
10+
--If you control no Level 5 or higher monsters, and the only monster you control is a Level 4 or lower monster: That monster can attack twice during each Battle Phase
1011
local e2=Effect.CreateEffect(c)
1112
e2:SetType(EFFECT_TYPE_FIELD)
1213
e2:SetCode(EFFECT_EXTRA_ATTACK)
13-
e2:SetRange(LOCATION_SZONE)
14+
e2:SetRange(LOCATION_FZONE)
1415
e2:SetTargetRange(LOCATION_MZONE,0)
15-
e2:SetCondition(s.condition)
16+
e2:SetCondition(s.extraattackcon)
1617
e2:SetValue(1)
1718
c:RegisterEffect(e2)
1819
end
19-
function s.condition(e)
20+
function s.extraattackcon(e)
2021
local g=Duel.GetFieldGroup(e:GetHandlerPlayer(),LOCATION_MZONE,0)
21-
local ct=#g
22-
local tg=g:GetFirst()
23-
return ct==1 and tg:IsFaceup() and tg:IsLevelBelow(4)
24-
end
22+
return #g==1 and g:IsExists(aux.FaceupFilter(Card.IsLevelBelow,4),1,nil) and g:FilterCount(aux.FaceupFilter(Card.IsLevelAbove,5),nil)==0
23+
end

0 commit comments

Comments
 (0)