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
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
Clara Grace Paulsen
ygopro-rush-duel
Commits
b62fb70a
Commit
b62fb70a
authored
Dec 15, 2020
by
未闻皂名
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2020/12/15 为变更表示形式的卡添加MAX怪兽的检测
parent
fc8f9c22
Changes
12
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
55 additions
and
46 deletions
+55
-46
script/c120105002.lua
script/c120105002.lua
+6
-3
script/c120120029.lua
script/c120120029.lua
+1
-1
script/c120120039.lua
script/c120120039.lua
+6
-3
script/c120130019.lua
script/c120130019.lua
+2
-2
script/c120130038.lua
script/c120130038.lua
+1
-1
script/c120140003.lua
script/c120140003.lua
+1
-1
script/c120140010.lua
script/c120140010.lua
+1
-1
script/c120140011.lua
script/c120140011.lua
+1
-1
script/c120140013.lua
script/c120140013.lua
+1
-1
script/c120140014.lua
script/c120140014.lua
+1
-1
script/c120145037.lua
script/c120145037.lua
+1
-1
script/special.lua
script/special.lua
+33
-30
No files found.
script/c120105002.lua
View file @
b62fb70a
...
...
@@ -14,6 +14,9 @@ function cm.initial_effect(c)
c
:
RegisterEffect
(
e1
)
end
--Position
function
cm
.
posfilter
(
c
)
return
c
:
IsCanChangePosition
()
and
RushDuel
.
IsHasDefense
(
c
)
end
function
cm
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToGraveAsCost
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
...
...
@@ -21,13 +24,13 @@ function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SendtoGrave
(
g
,
REASON_COST
)
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsCanChangePosition
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
)
end
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsCanChangePosition
,
tp
,
0
,
LOCATION_MZONE
,
nil
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
posfilter
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
)
end
local
g
=
Duel
.
GetMatchingGroup
(
cm
.
posfilter
,
tp
,
0
,
LOCATION_MZONE
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_POSITION
,
g
,
1
,
0
,
0
)
end
function
cm
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_POSCHANGE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
Card
.
IsCanChangePosition
,
tp
,
0
,
LOCATION_MZONE
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
cm
.
posfilter
,
tp
,
0
,
LOCATION_MZONE
,
1
,
1
,
nil
)
if
g
:
GetCount
()
>
0
then
Duel
.
HintSelection
(
g
)
Duel
.
ChangePosition
(
g
,
POS_FACEUP_DEFENSE
,
POS_FACEUP_DEFENSE
,
POS_FACEUP_ATTACK
,
POS_FACEUP_ATTACK
)
...
...
script/c120120029.lua
View file @
b62fb70a
...
...
@@ -18,7 +18,7 @@ function cm.condition(e,tp,eg,ep,ev,re,r,rp)
return
c
:
IsReason
(
REASON_SUMMON
)
and
c
:
IsStatus
(
STATUS_SUMMON_TURN
)
end
function
cm
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsCanChangePosition
()
end
if
chk
==
0
then
return
e
:
GetHandler
():
IsCanChangePosition
()
and
RushDuel
.
IsHasDefense
(
e
:
GetHandler
())
end
Duel
.
ChangePosition
(
e
:
GetHandler
(),
POS_FACEUP_DEFENSE
,
POS_FACEDOWN_DEFENSE
,
POS_FACEUP_ATTACK
,
POS_FACEUP_ATTACK
)
end
function
cm
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
script/c120120039.lua
View file @
b62fb70a
...
...
@@ -20,6 +20,9 @@ end
function
cm
.
costfilter
(
c
)
return
c
:
IsAttribute
(
ATTRIBUTE_WIND
)
and
c
:
IsAbleToGraveAsCost
()
end
function
cm
.
posfilter
(
c
)
return
c
:
IsCanChangePosition
()
and
RushDuel
.
IsHasDefense
(
c
)
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
IsExistingMatchingCard
(
cm
.
confilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
...
...
@@ -30,13 +33,13 @@ function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SendtoGrave
(
g
,
REASON_COST
)
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsCanChangePosition
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
)
end
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsCanChangePosition
,
tp
,
0
,
LOCATION_MZONE
,
nil
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
posfilter
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
)
end
local
g
=
Duel
.
GetMatchingGroup
(
cm
.
posfilter
,
tp
,
0
,
LOCATION_MZONE
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_POSITION
,
g
,
1
,
0
,
0
)
end
function
cm
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_POSCHANGE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
Card
.
IsCanChangePosition
,
tp
,
0
,
LOCATION_MZONE
,
1
,
3
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
cm
.
posfilter
,
tp
,
0
,
LOCATION_MZONE
,
1
,
3
,
nil
)
if
g
:
GetCount
()
>
0
then
Duel
.
HintSelection
(
g
)
Duel
.
ChangePosition
(
g
,
POS_FACEUP_DEFENSE
,
POS_FACEUP_DEFENSE
,
POS_FACEUP_ATTACK
,
POS_FACEUP_ATTACK
)
...
...
script/c120130019.lua
View file @
b62fb70a
...
...
@@ -22,9 +22,9 @@ function cm.confilter(c)
end
function
cm
.
posfilter
(
c
,
tp
)
if
c
:
IsControler
(
tp
)
then
return
c
:
IsPosition
(
POS_FACEUP_ATTACK
)
and
c
:
IsCode
(
list
[
1
])
and
c
:
IsCanChangePosition
()
return
c
:
IsPosition
(
POS_FACEUP_ATTACK
)
and
c
:
IsCode
(
list
[
1
])
and
c
:
IsCanChangePosition
()
and
RushDuel
.
IsHasDefense
(
c
)
else
return
c
:
IsAttackPos
()
and
c
:
IsCanChangePosition
()
return
c
:
IsAttackPos
()
and
c
:
IsCanChangePosition
()
and
RushDuel
.
IsHasDefense
(
c
)
end
end
function
cm
.
check
(
g
,
tp
)
...
...
script/c120130038.lua
View file @
b62fb70a
...
...
@@ -13,7 +13,7 @@ function cm.initial_effect(c)
end
--Activate
function
cm
.
posfilter
(
c
)
return
c
:
IsPosition
(
POS_FACEUP_ATTACK
)
and
c
:
IsRace
(
RACE_AQUA
)
and
c
:
IsCanChangePosition
()
return
c
:
IsPosition
(
POS_FACEUP_ATTACK
)
and
c
:
IsRace
(
RACE_AQUA
)
and
c
:
IsCanChangePosition
()
and
RushDuel
.
IsHasDefense
(
c
)
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
posfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
...
...
script/c120140003.lua
View file @
b62fb70a
...
...
@@ -19,7 +19,7 @@ function cm.filter(c)
end
function
cm
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
if
chk
==
0
then
return
c
:
IsAttackPos
()
and
c
:
IsCanChangePosition
()
end
if
chk
==
0
then
return
c
:
IsAttackPos
()
and
c
:
IsCanChangePosition
()
and
RushDuel
.
IsHasDefense
(
c
)
end
Duel
.
ChangePosition
(
c
,
POS_FACEUP_DEFENSE
)
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
...
...
script/c120140010.lua
View file @
b62fb70a
...
...
@@ -15,7 +15,7 @@ function cm.initial_effect(c)
end
--Activate
function
cm
.
costfilter
(
c
)
return
c
:
IsAttackPos
()
and
c
:
IsLevelAbove
(
7
)
and
c
:
IsRace
(
RACE_WARRIOR
)
and
c
:
IsCanChangePosition
()
return
c
:
IsAttackPos
()
and
c
:
IsLevelAbove
(
7
)
and
c
:
IsRace
(
RACE_WARRIOR
)
and
c
:
IsCanChangePosition
()
and
RushDuel
.
IsHasDefense
(
c
)
end
function
cm
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
costfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
...
...
script/c120140011.lua
View file @
b62fb70a
...
...
@@ -13,7 +13,7 @@ function cm.initial_effect(c)
end
--Activate
function
cm
.
filter
(
c
)
return
c
:
IsAttackPos
()
and
c
:
IsCanChangePosition
()
return
c
:
IsAttackPos
()
and
c
:
IsCanChangePosition
()
and
RushDuel
.
IsHasDefense
(
c
)
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
cm
.
filter
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
)
end
...
...
script/c120140013.lua
View file @
b62fb70a
...
...
@@ -20,7 +20,7 @@ function cm.confilter2(c,tp)
return
c
:
GetSummonPlayer
()
==
tp
end
function
cm
.
posfilter
(
c
)
return
c
:
IsAttackPos
()
and
c
:
IsCanChangePosition
()
return
c
:
IsAttackPos
()
and
c
:
IsCanChangePosition
()
and
RushDuel
.
IsHasDefense
(
c
)
end
function
cm
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
IsExistingMatchingCard
(
cm
.
confilter1
,
tp
,
LOCATION_MZONE
,
0
,
2
,
nil
)
...
...
script/c120140014.lua
View file @
b62fb70a
...
...
@@ -22,7 +22,7 @@ function cm.condition(e,tp,eg,ep,ev,re,r,rp)
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
tc
=
Duel
.
GetAttacker
()
if
chk
==
0
then
return
tc
:
IsAttackPos
()
and
tc
:
IsCanChangePosition
()
end
if
chk
==
0
then
return
tc
:
IsAttackPos
()
and
tc
:
IsCanChangePosition
()
and
RushDuel
.
IsHasDefense
(
tc
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_POSITION
,
tc
,
1
,
0
,
0
)
end
function
cm
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
script/c120145037.lua
View file @
b62fb70a
...
...
@@ -18,7 +18,7 @@ function cm.filter(c)
return
c
:
IsFaceup
()
and
c
:
IsType
(
TYPE_NORMAL
)
and
c
:
IsDefenseAbove
(
2000
)
and
RushDuel
.
IsHasDefense
(
c
)
end
function
cm
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsCanChangePosition
()
end
if
chk
==
0
then
return
e
:
GetHandler
():
IsCanChangePosition
()
and
RushDuel
.
IsHasDefense
(
e
:
GetHandler
())
end
Duel
.
ChangePosition
(
e
:
GetHandler
(),
POS_FACEUP_DEFENSE
,
POS_FACEDOWN_DEFENSE
,
POS_FACEUP_ATTACK
,
POS_FACEUP_ATTACK
)
end
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
...
...
script/special.lua
View file @
b62fb70a
...
...
@@ -67,19 +67,19 @@ function Auxiliary.PreloadUds()
e6
:
SetTargetRange
(
1
,
1
)
Duel
.
RegisterEffect
(
e6
,
0
)
--Trap Chain
local
e7
=
Effect
.
GlobalEffect
()
e7
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e7
:
SetCode
(
EVENT_CHAINING
)
e7
:
SetOperation
(
RushDuel
.
TrapChainLimitOperation
)
Duel
.
RegisterEffect
(
e7
,
0
)
--Once Per Turn
local
e8
=
Effect
.
GlobalEffect
()
e8
:
SetType
(
EFFECT_TYPE_FIELD
)
e8
:
SetCode
(
EFFECT_CANNOT_ACTIVATE
)
e8
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e8
:
SetTargetRange
(
1
,
1
)
e8
:
SetValue
(
RushDuel
.
ActivateLimit
)
e8
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e8
:
SetCode
(
EVENT_CHAINING
)
e8
:
SetOperation
(
RushDuel
.
TrapChainLimitOperation
)
Duel
.
RegisterEffect
(
e8
,
0
)
--Once Per Turn
local
e9
=
Effect
.
GlobalEffect
()
e9
:
SetType
(
EFFECT_TYPE_FIELD
)
e9
:
SetCode
(
EFFECT_CANNOT_ACTIVATE
)
e9
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e9
:
SetTargetRange
(
1
,
1
)
e9
:
SetValue
(
RushDuel
.
ActivateLimit
)
Duel
.
RegisterEffect
(
e9
,
0
)
local
e9
=
Effect
.
GlobalEffect
()
e9
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e9
:
SetCode
(
EVENT_CHAIN_SOLVING
)
...
...
@@ -164,31 +164,34 @@ function RushDuel.AddMaximumProcedure(c,max_atk,left_code,right_code)
e5
:
SetRange
(
LOCATION_MZONE
)
e5
:
SetCondition
(
RushDuel
.
IsMaximumMode
)
c
:
RegisterEffect
(
e5
)
local
e6
=
Effect
.
CreateEffect
(
c
)
e6
:
SetType
(
EFFECT_TYPE_SINGLE
)
e6
:
SetCode
(
EFFECT_CANNOT_TURN_SET
)
e6
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
+
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e6
:
SetRange
(
LOCATION_MZONE
)
e6
:
SetCondition
(
RushDuel
.
IsMaximumMode
)
local
e6
=
e5
:
Clone
()
e6
:
SetCode
(
EFFECT_CANNOT_CHANGE_POS_E
)
c
:
RegisterEffect
(
e6
)
--Use 3 MZone
local
e7
=
Effect
.
CreateEffect
(
c
)
e7
:
SetType
(
EFFECT_TYPE_
FIELD
)
e7
:
SetCode
(
EFFECT_
MAX_MZONE
)
e7
:
SetProperty
(
EFFECT_FLAG_
PLAYER_TARGET
+
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e7
:
SetType
(
EFFECT_TYPE_
SINGLE
)
e7
:
SetCode
(
EFFECT_
CANNOT_TURN_SET
)
e7
:
SetProperty
(
EFFECT_FLAG_
SINGLE_RANGE
+
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e7
:
SetRange
(
LOCATION_MZONE
)
e7
:
SetTargetRange
(
1
,
0
)
e7
:
SetCondition
(
RushDuel
.
IsMaximumMode
)
e7
:
SetValue
(
1
)
c
:
RegisterEffect
(
e7
)
--Leave Field
local
e8
=
Effect
.
CreateEffect
(
c
)
e8
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e8
:
SetCode
(
EVENT_LEAVE_FIELD_P
)
e8
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
--Use 3 MZone
local
e8
=
Effect
.
CreateEffect
(
c
)
e8
:
SetType
(
EFFECT_TYPE_FIELD
)
e8
:
SetCode
(
EFFECT_MAX_MZONE
)
e8
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
+
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e8
:
SetRange
(
LOCATION_MZONE
)
e8
:
SetTargetRange
(
1
,
0
)
e8
:
SetCondition
(
RushDuel
.
IsMaximumMode
)
e8
:
SetOperation
(
RushDuel
.
LeaveOperation
)
c
:
RegisterEffect
(
e8
)
e8
:
SetValue
(
1
)
c
:
RegisterEffect
(
e8
)
--Leave Field
local
e9
=
Effect
.
CreateEffect
(
c
)
e9
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e9
:
SetCode
(
EVENT_LEAVE_FIELD_P
)
e9
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_UNCOPYABLE
)
e9
:
SetCondition
(
RushDuel
.
IsMaximumMode
)
e9
:
SetOperation
(
RushDuel
.
LeaveOperation
)
c
:
RegisterEffect
(
e9
)
end
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
)
...
...
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