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
5
Issues
5
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
eee55359
Commit
eee55359
authored
Jun 17, 2023
by
未闻皂名
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2023/6/17 极大bug修复
parent
e90b8b72
Pipeline
#22285
passed with stages
in 6 minutes and 28 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
38 deletions
+17
-38
script/RDMaximum.lua
script/RDMaximum.lua
+17
-38
No files found.
script/RDMaximum.lua
View file @
eee55359
...
@@ -47,32 +47,24 @@ function RushDuel.AddMaximumProcedure(c, max_atk, left_code, right_code)
...
@@ -47,32 +47,24 @@ function RushDuel.AddMaximumProcedure(c, max_atk, left_code, right_code)
RushDuel
.
AddHandSpecialSummonProcedure
(
c
,
aux
.
Stringid
(
120000000
,
0
),
RushDuel
.
MaximumSummonCondition
(
left_code
,
right_code
),
RushDuel
.
MaximumSummonTarget
(
left_code
,
right_code
),
RushDuel
.
AddHandSpecialSummonProcedure
(
c
,
aux
.
Stringid
(
120000000
,
0
),
RushDuel
.
MaximumSummonCondition
(
left_code
,
right_code
),
RushDuel
.
MaximumSummonTarget
(
left_code
,
right_code
),
RushDuel
.
MaximumSummonOperation
(
left_code
,
right_code
),
RushDuel
.
MaximumSummonValue
,
POS_FACEUP_ATTACK
)
RushDuel
.
MaximumSummonOperation
(
left_code
,
right_code
),
RushDuel
.
MaximumSummonValue
,
POS_FACEUP_ATTACK
)
-- 极大攻击力
-- 极大攻击力
local
e
3
=
Effect
.
CreateEffect
(
c
)
local
e
1
=
Effect
.
CreateEffect
(
c
)
e
3
:
SetType
(
EFFECT_TYPE_SINGLE
)
e
1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e
3
:
SetCode
(
EFFECT_SET_BASE_ATTACK
)
e
1
:
SetCode
(
EFFECT_SET_BASE_ATTACK
)
e
3
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
+
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e
1
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
+
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e
3
:
SetRange
(
LOCATION_MZONE
)
e
1
:
SetRange
(
LOCATION_MZONE
)
e
3
:
SetCondition
(
RushDuel
.
MaximumMode
)
e
1
:
SetCondition
(
RushDuel
.
MaximumMode
)
e
3
:
SetValue
(
max_atk
)
e
1
:
SetValue
(
max_atk
)
c
:
RegisterEffect
(
e
3
)
c
:
RegisterEffect
(
e
1
)
-- 占用3个主要怪兽区域
-- 占用3个主要怪兽区域
local
e4
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e4
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e4
:
SetCode
(
EFFECT_MAX_MZONE
)
e2
:
SetCode
(
EFFECT_MAX_MZONE
)
e4
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
+
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e2
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
+
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e4
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetRange
(
LOCATION_MZONE
)
e4
:
SetTargetRange
(
1
,
0
)
e2
:
SetTargetRange
(
1
,
0
)
e4
:
SetCondition
(
RushDuel
.
MaximumMode
)
e2
:
SetCondition
(
RushDuel
.
MaximumMode
)
e4
:
SetValue
(
1
)
e2
:
SetValue
(
1
)
c
:
RegisterEffect
(
e4
)
c
:
RegisterEffect
(
e2
)
-- 离开场上时, 所有部件一同离开
local
e5
=
Effect
.
CreateEffect
(
c
)
e5
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e5
:
SetCode
(
EVENT_LEAVE_FIELD_P
)
e5
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e5
:
SetCondition
(
RushDuel
.
MaximumMode
)
e5
:
SetOperation
(
RushDuel
.
MaximumLeaveOperation
)
c
:
RegisterEffect
(
e5
)
end
end
function
RushDuel
.
MaximumSummonFilter
(
c
,
e
,
tp
,
left_code
,
right_code
)
function
RushDuel
.
MaximumSummonFilter
(
c
,
e
,
tp
,
left_code
,
right_code
)
return
c
:
IsCode
(
left_code
,
right_code
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
POS_FACEUP
)
return
c
:
IsCode
(
left_code
,
right_code
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
POS_FACEUP
)
...
@@ -126,20 +118,7 @@ end
...
@@ -126,20 +118,7 @@ end
function
RushDuel
.
MaximumSummonValue
(
e
,
c
)
function
RushDuel
.
MaximumSummonValue
(
e
,
c
)
return
SUMMON_TYPE_MAXIMUM
,
0x4
return
SUMMON_TYPE_MAXIMUM
,
0x4
end
end
function
RushDuel
.
MaximumMode
(
e
)
function
RushDuel
.
MaximumMode
(
e
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
return
c
:
IsSummonType
(
SUMMON_TYPE_MAXIMUM
)
and
c
:
GetOverlayCount
()
>
0
return
c
:
IsSummonType
(
SUMMON_TYPE_MAXIMUM
)
and
c
:
GetOverlayCount
()
>
0
end
end
function
RushDuel
.
MaximumLeaveOperation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
loc
=
c
:
GetDestination
()
local
g
=
c
:
GetOverlayGroup
()
if
loc
==
LOCATION_HAND
then
Duel
.
SendtoHand
(
g
,
nil
,
REASON_RULE
)
elseif
loc
==
LOCATION_DECK
then
Duel
.
SendtoDeck
(
g
,
nil
,
SEQ_DECKSHUFFLE
,
REASON_RULE
)
elseif
loc
==
LOCATION_REMOVED
then
Duel
.
Remove
(
g
,
POS_FACEUP
,
REASON_RULE
)
end
end
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