Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-scripts
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
八宫一月
ygopro-scripts
Commits
d3c602a4
Commit
d3c602a4
authored
Nov 29, 2018
by
mercury233
Committed by
GitHub
Nov 29, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix Magical Musketeer monsters (#1122)
parent
a26ecfd0
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
26 additions
and
24 deletions
+26
-24
c31629407.lua
c31629407.lua
+3
-4
c32841045.lua
c32841045.lua
+3
-4
c5230799.lua
c5230799.lua
+3
-4
c68024506.lua
c68024506.lua
+3
-4
c68246154.lua
c68246154.lua
+3
-4
c94418111.lua
c94418111.lua
+3
-4
utility.lua
utility.lua
+8
-0
No files found.
c31629407.lua
View file @
d3c602a4
...
...
@@ -17,7 +17,8 @@ function c31629407.initial_effect(c)
e0
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e0
:
SetCode
(
EVENT_CHAINING
)
e0
:
SetRange
(
LOCATION_MZONE
)
e0
:
SetOperation
(
aux
.
chainreg
)
e0
:
SetCondition
(
aux
.
mskregcon
)
e0
:
SetOperation
(
aux
.
mskreg
)
c
:
RegisterEffect
(
e0
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetDescription
(
aux
.
Stringid
(
31629407
,
0
))
...
...
@@ -33,9 +34,7 @@ function c31629407.initial_effect(c)
c
:
RegisterEffect
(
e3
)
end
function
c31629407
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
not
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
or
c
:
GetFlagEffect
(
1
)
<=
0
then
return
false
end
return
c
:
GetColumnGroup
():
IsContains
(
re
:
GetHandler
())
return
e
:
GetHandler
():
GetFlagEffect
(
ev
)
>
0
end
function
c31629407
.
spfilter
(
c
,
e
,
tp
)
return
c
:
IsLevelBelow
(
4
)
and
c
:
IsSetCard
(
0x108
)
and
not
c
:
IsCode
(
31629407
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
POS_FACEUP_DEFENSE
)
...
...
c32841045.lua
View file @
d3c602a4
...
...
@@ -17,7 +17,8 @@ function c32841045.initial_effect(c)
e0
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e0
:
SetCode
(
EVENT_CHAINING
)
e0
:
SetRange
(
LOCATION_MZONE
)
e0
:
SetOperation
(
aux
.
chainreg
)
e0
:
SetCondition
(
aux
.
mskregcon
)
e0
:
SetOperation
(
aux
.
mskreg
)
c
:
RegisterEffect
(
e0
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetDescription
(
aux
.
Stringid
(
32841045
,
0
))
...
...
@@ -33,9 +34,7 @@ function c32841045.initial_effect(c)
c
:
RegisterEffect
(
e3
)
end
function
c32841045
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
not
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
or
c
:
GetFlagEffect
(
1
)
<=
0
then
return
false
end
return
c
:
GetColumnGroup
():
IsContains
(
re
:
GetHandler
())
return
e
:
GetHandler
():
GetFlagEffect
(
ev
)
>
0
end
function
c32841045
.
thfilter
(
c
,
rc
)
return
c
:
IsSetCard
(
0x108
)
and
not
c
:
IsCode
(
rc
:
GetCode
())
and
c
:
IsAbleToHand
()
...
...
c5230799.lua
View file @
d3c602a4
...
...
@@ -17,7 +17,8 @@ function c5230799.initial_effect(c)
e0
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e0
:
SetCode
(
EVENT_CHAINING
)
e0
:
SetRange
(
LOCATION_MZONE
)
e0
:
SetOperation
(
aux
.
chainreg
)
e0
:
SetCondition
(
aux
.
mskregcon
)
e0
:
SetOperation
(
aux
.
mskreg
)
c
:
RegisterEffect
(
e0
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetDescription
(
aux
.
Stringid
(
5230799
,
0
))
...
...
@@ -34,9 +35,7 @@ function c5230799.initial_effect(c)
c
:
RegisterEffect
(
e3
)
end
function
c5230799
.
drcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
not
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
or
c
:
GetFlagEffect
(
1
)
<=
0
then
return
false
end
return
c
:
GetColumnGroup
():
IsContains
(
re
:
GetHandler
())
return
e
:
GetHandler
():
GetFlagEffect
(
ev
)
>
0
end
function
c5230799
.
cfilter
(
c
)
return
c
:
IsSetCard
(
0x108
)
and
c
:
IsDiscardable
()
...
...
c68024506.lua
View file @
d3c602a4
...
...
@@ -17,7 +17,8 @@ function c68024506.initial_effect(c)
e0
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e0
:
SetCode
(
EVENT_CHAINING
)
e0
:
SetRange
(
LOCATION_MZONE
)
e0
:
SetOperation
(
aux
.
chainreg
)
e0
:
SetCondition
(
aux
.
mskregcon
)
e0
:
SetOperation
(
aux
.
mskreg
)
c
:
RegisterEffect
(
e0
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetDescription
(
aux
.
Stringid
(
68024506
,
0
))
...
...
@@ -33,9 +34,7 @@ function c68024506.initial_effect(c)
c
:
RegisterEffect
(
e3
)
end
function
c68024506
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
not
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
or
c
:
GetFlagEffect
(
1
)
<=
0
then
return
false
end
return
c
:
GetColumnGroup
():
IsContains
(
re
:
GetHandler
())
return
e
:
GetHandler
():
GetFlagEffect
(
ev
)
>
0
end
function
c68024506
.
filter
(
c
,
e
,
tp
)
return
c
:
IsSetCard
(
0x108
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
POS_FACEUP_DEFENSE
)
...
...
c68246154.lua
View file @
d3c602a4
...
...
@@ -17,7 +17,8 @@ function c68246154.initial_effect(c)
e0
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e0
:
SetCode
(
EVENT_CHAINING
)
e0
:
SetRange
(
LOCATION_MZONE
)
e0
:
SetOperation
(
aux
.
chainreg
)
e0
:
SetCondition
(
aux
.
mskregcon
)
e0
:
SetOperation
(
aux
.
mskreg
)
c
:
RegisterEffect
(
e0
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetDescription
(
aux
.
Stringid
(
68246154
,
0
))
...
...
@@ -33,9 +34,7 @@ function c68246154.initial_effect(c)
c
:
RegisterEffect
(
e3
)
end
function
c68246154
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
not
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
or
c
:
GetFlagEffect
(
1
)
<=
0
then
return
false
end
return
c
:
GetColumnGroup
():
IsContains
(
re
:
GetHandler
())
return
e
:
GetHandler
():
GetFlagEffect
(
ev
)
>
0
end
function
c68246154
.
thfilter
(
c
,
rc
)
return
c
:
IsSetCard
(
0x108
)
and
not
c
:
IsCode
(
rc
:
GetCode
())
and
c
:
IsAbleToHand
()
...
...
c94418111.lua
View file @
d3c602a4
...
...
@@ -17,7 +17,8 @@ function c94418111.initial_effect(c)
e0
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e0
:
SetCode
(
EVENT_CHAINING
)
e0
:
SetRange
(
LOCATION_MZONE
)
e0
:
SetOperation
(
aux
.
chainreg
)
e0
:
SetCondition
(
aux
.
mskregcon
)
e0
:
SetOperation
(
aux
.
mskreg
)
c
:
RegisterEffect
(
e0
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetDescription
(
aux
.
Stringid
(
94418111
,
0
))
...
...
@@ -33,9 +34,7 @@ function c94418111.initial_effect(c)
c
:
RegisterEffect
(
e3
)
end
function
c94418111
.
tdcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
not
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
or
c
:
GetFlagEffect
(
1
)
<=
0
then
return
false
end
return
c
:
GetColumnGroup
():
IsContains
(
re
:
GetHandler
())
return
e
:
GetHandler
():
GetFlagEffect
(
ev
)
>
0
end
function
c94418111
.
filter
(
c
)
return
c
:
IsSetCard
(
0x108
)
and
c
:
IsAbleToDeck
()
...
...
utility.lua
View file @
d3c602a4
...
...
@@ -2064,6 +2064,14 @@ function Auxiliary.evospcon(e,tp,eg,ep,ev,re,r,rp)
local
st
=
e
:
GetHandler
():
GetSummonType
()
return
st
>=
(
SUMMON_TYPE_SPECIAL
+
150
)
and
st
<
(
SUMMON_TYPE_SPECIAL
+
180
)
end
--chain reg condition for magical musketeer monsters
function
Auxiliary
.
mskregcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
and
e
:
GetHandler
():
GetColumnGroup
():
IsContains
(
re
:
GetHandler
())
end
--chain reg for magical musketeer monsters
function
Auxiliary
.
mskreg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
e
:
GetHandler
():
RegisterFlagEffect
(
ev
,
RESET_EVENT
+
RESETS_STANDARD
-
RESET_TURN_SET
+
RESET_CHAIN
,
0
,
1
)
end
--filter for necro_valley test
function
Auxiliary
.
NecroValleyFilter
(
f
)
return
function
(
target
,
...
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment