Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-rush-duel
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
3
Issues
3
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
MyCard
ygopro-rush-duel
Commits
f4dbaca6
Commit
f4dbaca6
authored
Dec 05, 2021
by
未闻皂名
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2021/12/05 兼容新版本的ygopro,改写1回合1次规则的判定
parent
a6c8ad4d
Pipeline
#7491
passed with stages
in 3 minutes and 43 seconds
Changes
12
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
26 additions
and
2 deletions
+26
-2
script/c120150001.lua
script/c120150001.lua
+1
-0
script/c120150003.lua
script/c120150003.lua
+1
-0
script/c120150010.lua
script/c120150010.lua
+1
-0
script/c120150012.lua
script/c120150012.lua
+1
-0
script/c120151001.lua
script/c120151001.lua
+1
-0
script/c120151003.lua
script/c120151003.lua
+2
-0
script/c120155023.lua
script/c120155023.lua
+1
-0
script/c120170014.lua
script/c120170014.lua
+1
-0
script/c120170016.lua
script/c120170016.lua
+1
-0
script/c120204001.lua
script/c120204001.lua
+6
-2
script/c120204003.lua
script/c120204003.lua
+2
-0
script/special.lua
script/special.lua
+8
-0
No files found.
script/c120150001.lua
View file @
f4dbaca6
...
...
@@ -8,6 +8,7 @@ function cm.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_ATKCHANGE
)
e1
:
SetType
(
EFFECT_TYPE_XMATERIAL
+
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetLabel
(
m
)
e1
:
SetCondition
(
cm
.
condition
)
e1
:
SetCost
(
cm
.
cost
)
e1
:
SetTarget
(
cm
.
target
)
...
...
script/c120150003.lua
View file @
f4dbaca6
...
...
@@ -8,6 +8,7 @@ function cm.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_ATKCHANGE
)
e1
:
SetType
(
EFFECT_TYPE_XMATERIAL
+
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetLabel
(
m
)
e1
:
SetCondition
(
RushDuel
.
IsMaximumMode
)
e1
:
SetCost
(
cm
.
cost
)
e1
:
SetTarget
(
cm
.
target
)
...
...
script/c120150010.lua
View file @
f4dbaca6
...
...
@@ -8,6 +8,7 @@ function cm.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_DESTROY
)
e1
:
SetType
(
EFFECT_TYPE_XMATERIAL
+
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetLabel
(
m
)
e1
:
SetCondition
(
RushDuel
.
IsMaximumMode
)
e1
:
SetCost
(
cm
.
cost
)
e1
:
SetTarget
(
cm
.
target
)
...
...
script/c120150012.lua
View file @
f4dbaca6
...
...
@@ -8,6 +8,7 @@ function cm.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_POSITION
)
e1
:
SetType
(
EFFECT_TYPE_XMATERIAL
+
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetLabel
(
m
)
e1
:
SetCondition
(
RushDuel
.
IsMaximumMode
)
e1
:
SetCost
(
cm
.
cost
)
e1
:
SetTarget
(
cm
.
target
)
...
...
script/c120151001.lua
View file @
f4dbaca6
...
...
@@ -8,6 +8,7 @@ function cm.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_DAMAGE
+
CATEGORY_TOHAND
+
CATEGORY_GRAVE_ACTION
)
e1
:
SetType
(
EFFECT_TYPE_XMATERIAL
+
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetLabel
(
m
)
e1
:
SetCondition
(
RushDuel
.
IsMaximumMode
)
e1
:
SetCost
(
cm
.
cost
)
e1
:
SetTarget
(
cm
.
target
)
...
...
script/c120151003.lua
View file @
f4dbaca6
...
...
@@ -8,6 +8,8 @@ function cm.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_ATKCHANGE
)
e1
:
SetType
(
EFFECT_TYPE_XMATERIAL
+
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetLabel
(
m
)
e1
:
SetCondition
(
RushDuel
.
IsMaximumMode
)
e1
:
SetCost
(
cm
.
cost
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
...
...
script/c120155023.lua
View file @
f4dbaca6
...
...
@@ -8,6 +8,7 @@ function cm.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_DESTROY
+
CATEGORY_DRAW
)
e1
:
SetType
(
EFFECT_TYPE_XMATERIAL
+
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetLabel
(
m
)
e1
:
SetCondition
(
RushDuel
.
IsMaximumMode
)
e1
:
SetCost
(
cm
.
cost
)
e1
:
SetTarget
(
cm
.
target
)
...
...
script/c120170014.lua
View file @
f4dbaca6
...
...
@@ -8,6 +8,7 @@ function cm.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_ATKCHANGE
+
CATEGORY_DESTROY
+
CATEGORY_DAMAGE
)
e1
:
SetType
(
EFFECT_TYPE_XMATERIAL
+
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetLabel
(
m
)
e1
:
SetCondition
(
RushDuel
.
IsMaximumMode
)
e1
:
SetCost
(
cm
.
cost
)
e1
:
SetTarget
(
cm
.
target
)
...
...
script/c120170016.lua
View file @
f4dbaca6
...
...
@@ -8,6 +8,7 @@ function cm.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_ATKCHANGE
+
CATEGORY_DESTROY
+
CATEGORY_DAMAGE
)
e1
:
SetType
(
EFFECT_TYPE_XMATERIAL
+
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetLabel
(
m
)
e1
:
SetCondition
(
RushDuel
.
IsMaximumMode
)
e1
:
SetCost
(
cm
.
cost
)
e1
:
SetTarget
(
cm
.
target
)
...
...
script/c120204001.lua
View file @
f4dbaca6
...
...
@@ -7,19 +7,23 @@ function cm.initial_effect(c)
e1
:
SetDescription
(
aux
.
Stringid
(
m
,
0
))
e1
:
SetType
(
EFFECT_TYPE_XMATERIAL
+
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
RushDuel
.
IsMaximumMode
)
e1
:
SetLabel
(
m
)
e1
:
SetCondition
(
cm
.
condition
)
e1
:
SetCost
(
cm
.
cost
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
c
:
RegisterEffect
(
e1
)
end
--Multiple Attack
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
RushDuel
.
IsMaximumMode
(
e
)
and
Duel
.
IsAbleToEnterBP
()
end
function
cm
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsPlayerCanDiscardDeckAsCost
(
tp
,
1
)
end
Duel
.
DiscardDeck
(
tp
,
1
,
REASON_COST
)
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsAbleToEnterBP
()
end
if
chk
==
0
then
return
true
end
Duel
.
Hint
(
HINT_OPSELECTED
,
1
-
tp
,
e
:
GetDescription
())
end
function
cm
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
script/c120204003.lua
View file @
f4dbaca6
...
...
@@ -8,6 +8,8 @@ function cm.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_ATKCHANGE
)
e1
:
SetType
(
EFFECT_TYPE_XMATERIAL
+
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetLabel
(
m
)
e1
:
SetCondition
(
RushDuel
.
IsMaximumMode
)
e1
:
SetCost
(
cm
.
cost
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
operation
)
...
...
script/special.lua
View file @
f4dbaca6
...
...
@@ -116,11 +116,19 @@ end
--Once Per Turn
function
RushDuel
.
ActivateLimit
(
e
,
re
,
tp
)
local
code
=
re
:
GetOwner
():
GetCode
()
if
re
:
GetType
()
&
EFFECT_TYPE_XMATERIAL
==
EFFECT_TYPE_XMATERIAL
then
--Maximum L/R Effect
code
=
re
:
GetLabel
()
end
return
re
:
GetHandler
():
GetFlagEffect
(
code
)
~=
0
end
function
RushDuel
.
ActivateCount
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
te
=
Duel
.
GetChainInfo
(
ev
,
CHAININFO_TRIGGERING_EFFECT
)
local
code
=
te
:
GetOwner
():
GetCode
()
if
te
:
GetType
()
&
EFFECT_TYPE_XMATERIAL
==
EFFECT_TYPE_XMATERIAL
then
--Maximum L/R Effect
code
=
te
:
GetLabel
()
end
te
:
GetHandler
():
RegisterFlagEffect
(
code
,
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
,
0
,
1
)
end
--Legend
...
...
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