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
c209f009
Commit
c209f009
authored
Nov 03, 2019
by
mercury233
Committed by
GitHub
Nov 03, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update Gozen Match and Rivalry of Warlords (#1236)
parent
7fa885a4
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
45 additions
and
10 deletions
+45
-10
c53334471.lua
c53334471.lua
+24
-6
c90846359.lua
c90846359.lua
+21
-4
No files found.
c53334471.lua
View file @
c209f009
...
...
@@ -4,6 +4,7 @@ function c53334471.initial_effect(c)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetHintTiming
(
0
,
TIMINGS_CHECK_MONSTER
)
e1
:
SetTarget
(
c53334471
.
acttg
)
c
:
RegisterEffect
(
e1
)
--adjust
...
...
@@ -65,6 +66,13 @@ end
function
c53334471
.
rmfilter
(
c
,
at
)
return
c
:
GetAttribute
()
==
at
end
function
c53334471
.
isonlyone
(
val
)
return
val
&
(
val
-
1
)
==
0
end
function
c53334471
.
tgselect
(
sg
,
g
)
local
att
=
c53334471
.
getattribute
(
g
-
sg
)
return
att
>
0
and
c53334471
.
isonlyone
(
att
)
and
not
sg
:
IsExists
(
c53334471
.
rmfilter
,
1
,
nil
,
att
)
end
function
c53334471
.
adjustop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
phase
=
Duel
.
GetCurrentPhase
()
if
(
phase
==
PHASE_DAMAGE
and
not
Duel
.
IsDamageCalculated
())
or
phase
==
PHASE_DAMAGE_CAL
then
return
end
...
...
@@ -74,10 +82,15 @@ function c53334471.adjustop(e,tp,eg,ep,ev,re,r,rp)
if
g1
:
GetCount
()
==
0
then
c53334471
[
tp
]
=
0
else
local
att
=
c53334471
.
getattribute
(
g1
)
if
bit
.
band
(
att
,
att
-
1
)
~=
0
then
if
not
c53334471
.
isonlyone
(
att
)
then
if
c53334471
[
tp
]
==
0
or
bit
.
band
(
c53334471
[
tp
],
att
)
==
0
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
aux
.
Stringid
(
53334471
,
0
))
att
=
Duel
.
AnnounceAttribute
(
tp
,
1
,
att
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
sg
=
g1
:
SelectSubGroup
(
tp
,
c53334471
.
tgselect
,
false
,
1
,
#
g1
,
g1
)
if
not
sg
then
att
=
0
else
att
=
c53334471
.
getattribute
(
g1
-
sg
)
end
else
att
=
c53334471
[
tp
]
end
end
g1
:
Remove
(
c53334471
.
rmfilter
,
nil
,
att
)
...
...
@@ -86,10 +99,15 @@ function c53334471.adjustop(e,tp,eg,ep,ev,re,r,rp)
if
g2
:
GetCount
()
==
0
then
c53334471
[
1
-
tp
]
=
0
else
local
att
=
c53334471
.
getattribute
(
g2
)
if
bit
.
band
(
att
,
att
-
1
)
~=
0
then
if
not
c53334471
.
isonlyone
(
att
)
then
if
c53334471
[
1
-
tp
]
==
0
or
bit
.
band
(
c53334471
[
1
-
tp
],
att
)
==
0
then
Duel
.
Hint
(
HINT_SELECTMSG
,
1
-
tp
,
aux
.
Stringid
(
53334471
,
0
))
att
=
Duel
.
AnnounceAttribute
(
1
-
tp
,
1
,
att
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
sg
=
g2
:
SelectSubGroup
(
1
-
tp
,
c53334471
.
tgselect
,
false
,
1
,
#
g2
,
g2
)
if
not
sg
then
att
=
0
else
att
=
c53334471
.
getattribute
(
g2
-
sg
)
end
else
att
=
c53334471
[
1
-
tp
]
end
end
g2
:
Remove
(
c53334471
.
rmfilter
,
nil
,
att
)
...
...
c90846359.lua
View file @
c209f009
...
...
@@ -66,6 +66,13 @@ end
function
c90846359
.
rmfilter
(
c
,
rc
)
return
c
:
GetRace
()
==
rc
end
function
c90846359
.
isonlyone
(
val
)
return
val
&
(
val
-
1
)
==
0
end
function
c90846359
.
tgselect
(
sg
,
g
)
local
rac
=
c90846359
.
getrace
(
g
-
sg
)
return
rac
>
0
and
c90846359
.
isonlyone
(
rac
)
and
not
sg
:
IsExists
(
c90846359
.
rmfilter
,
1
,
nil
,
rac
)
end
function
c90846359
.
adjustop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
phase
=
Duel
.
GetCurrentPhase
()
if
(
phase
==
PHASE_DAMAGE
and
not
Duel
.
IsDamageCalculated
())
or
phase
==
PHASE_DAMAGE_CAL
then
return
end
...
...
@@ -77,8 +84,13 @@ function c90846359.adjustop(e,tp,eg,ep,ev,re,r,rp)
local
rac
=
c90846359
.
getrace
(
g1
)
if
bit
.
band
(
rac
,
rac
-
1
)
~=
0
then
if
c90846359
[
tp
]
==
0
or
bit
.
band
(
c90846359
[
tp
],
rac
)
==
0
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
aux
.
Stringid
(
90846359
,
0
))
rac
=
Duel
.
AnnounceRace
(
tp
,
1
,
rac
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
sg
=
g1
:
SelectSubGroup
(
tp
,
c90846359
.
tgselect
,
false
,
1
,
#
g1
,
g1
)
if
not
sg
then
rac
=
0
else
rac
=
c90846359
.
getrace
(
g1
-
sg
)
end
else
rac
=
c90846359
[
tp
]
end
end
g1
:
Remove
(
c90846359
.
rmfilter
,
nil
,
rac
)
...
...
@@ -89,8 +101,13 @@ function c90846359.adjustop(e,tp,eg,ep,ev,re,r,rp)
local
rac
=
c90846359
.
getrace
(
g2
)
if
bit
.
band
(
rac
,
rac
-
1
)
~=
0
then
if
c90846359
[
1
-
tp
]
==
0
or
bit
.
band
(
c90846359
[
1
-
tp
],
rac
)
==
0
then
Duel
.
Hint
(
HINT_SELECTMSG
,
1
-
tp
,
aux
.
Stringid
(
90846359
,
0
))
rac
=
Duel
.
AnnounceRace
(
1
-
tp
,
1
,
rac
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
sg
=
g2
:
SelectSubGroup
(
1
-
tp
,
c90846359
.
tgselect
,
false
,
1
,
#
g2
,
g2
)
if
not
sg
then
rac
=
0
else
rac
=
c90846359
.
getrace
(
g2
-
sg
)
end
else
rac
=
c90846359
[
1
-
tp
]
end
end
g2
:
Remove
(
c90846359
.
rmfilter
,
nil
,
rac
)
...
...
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