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
Reinen
ygopro-scripts
Commits
36daa032
Commit
36daa032
authored
Feb 02, 2017
by
DailyShana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
simplify #785 and #788
parent
35851216
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
10 additions
and
18 deletions
+10
-18
c21377582.lua
c21377582.lua
+3
-3
c30539496.lua
c30539496.lua
+1
-3
c57761191.lua
c57761191.lua
+3
-3
c82321037.lua
c82321037.lua
+1
-3
c94160895.lua
c94160895.lua
+1
-3
c96746083.lua
c96746083.lua
+1
-3
No files found.
c21377582.lua
View file @
36daa032
...
...
@@ -88,6 +88,7 @@ function c21377582.regcon(e,tp,eg,ep,ev,re,r,rp)
end
function
c21377582
.
regop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
typ
=
e
:
GetLabelObject
():
GetLabel
()
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
...
...
@@ -95,9 +96,8 @@ function c21377582.regop(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
)
e1
:
SetValue
(
c21377582
.
efilter
)
e1
:
SetLabel
Object
(
e
:
GetLabelObject
()
)
e1
:
SetLabel
(
typ
)
c
:
RegisterEffect
(
e1
)
local
typ
=
e
:
GetLabelObject
():
GetLabel
()
if
bit
.
band
(
typ
,
TYPE_MONSTER
)
~=
0
then
c
:
RegisterFlagEffect
(
0
,
RESET_EVENT
+
0x1fe0000
,
EFFECT_FLAG_CLIENT_HINT
,
1
,
0
,
aux
.
Stringid
(
21377582
,
3
))
end
...
...
@@ -109,7 +109,7 @@ function c21377582.regop(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c21377582
.
efilter
(
e
,
te
)
return
te
:
IsActiveType
(
e
:
GetLabel
Object
():
GetLabel
())
and
te
:
GetOwner
()
~=
e
:
GetOwner
()
return
te
:
IsActiveType
(
e
:
GetLabel
())
and
te
:
GetOwner
()
~=
e
:
GetOwner
()
end
function
c21377582
.
descon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
bit
.
band
(
e
:
GetHandler
():
GetSummonType
(),
SUMMON_TYPE_ADVANCE
)
==
SUMMON_TYPE_ADVANCE
...
...
c30539496.lua
View file @
36daa032
...
...
@@ -74,10 +74,8 @@ function c30539496.spop(e,tp,eg,ep,ev,re,r,rp)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
then
Duel
.
SendtoGrave
(
c
,
REASON_RULE
)
return
else
return
end
return
end
local
rg
=
Duel
.
GetMatchingGroup
(
Card
.
IsAbleToRemove
,
tp
,
0
,
LOCATION_EXTRA
,
nil
)
if
rm
and
rg
:
GetCount
()
>
0
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
30539496
,
2
))
then
...
...
c57761191.lua
View file @
36daa032
...
...
@@ -92,6 +92,7 @@ function c57761191.regcon(e,tp,eg,ep,ev,re,r,rp)
end
function
c57761191
.
regop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
typ
=
e
:
GetLabelObject
():
GetLabel
()
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
...
...
@@ -99,9 +100,8 @@ function c57761191.regop(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
)
e1
:
SetValue
(
c57761191
.
efilter
)
e1
:
SetLabel
Object
(
e
:
GetLabelObject
()
)
e1
:
SetLabel
(
typ
)
c
:
RegisterEffect
(
e1
)
local
typ
=
e
:
GetLabelObject
():
GetLabel
()
if
bit
.
band
(
typ
,
TYPE_MONSTER
)
~=
0
then
c
:
RegisterFlagEffect
(
0
,
RESET_EVENT
+
0x1fe0000
,
EFFECT_FLAG_CLIENT_HINT
,
1
,
0
,
aux
.
Stringid
(
57761191
,
2
))
end
...
...
@@ -113,7 +113,7 @@ function c57761191.regop(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c57761191
.
efilter
(
e
,
te
)
return
te
:
IsActiveType
(
e
:
GetLabel
Object
():
GetLabel
())
and
te
:
GetOwner
()
~=
e
:
GetOwner
()
return
te
:
IsActiveType
(
e
:
GetLabel
())
and
te
:
GetOwner
()
~=
e
:
GetOwner
()
end
function
c57761191
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
...
...
c82321037.lua
View file @
36daa032
...
...
@@ -75,10 +75,8 @@ function c82321037.spop(e,tp,eg,ep,ev,re,r,rp)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
then
Duel
.
SendtoGrave
(
c
,
REASON_RULE
)
return
else
return
end
return
end
local
rg
=
Duel
.
GetMatchingGroup
(
c82321037
.
rmfilter
,
tp
,
0
,
LOCATION_ONFIELD
+
LOCATION_GRAVE
,
nil
)
if
rm
and
rg
:
GetCount
()
>
0
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
82321037
,
0
))
then
...
...
c94160895.lua
View file @
36daa032
...
...
@@ -74,10 +74,8 @@ function c94160895.spop(e,tp,eg,ep,ev,re,r,rp)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
then
Duel
.
SendtoGrave
(
c
,
REASON_RULE
)
return
else
return
end
return
end
local
rg
=
Duel
.
GetDecktopGroup
(
1
-
tp
,
4
)
if
rm
and
rg
:
GetCount
()
>
0
and
rg
:
FilterCount
(
Card
.
IsAbleToRemove
,
nil
)
==
4
...
...
c96746083.lua
View file @
36daa032
...
...
@@ -75,10 +75,8 @@ function c96746083.spop(e,tp,eg,ep,ev,re,r,rp)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
then
Duel
.
SendtoGrave
(
c
,
REASON_RULE
)
return
else
return
end
return
end
local
rg
=
Duel
.
GetMatchingGroup
(
c96746083
.
rmfilter
,
tp
,
0
,
LOCATION_MZONE
+
LOCATION_GRAVE
,
nil
,
tp
)
if
rm
and
rg
:
GetCount
()
>
0
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
96746083
,
0
))
then
...
...
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