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
f42cfb25
Commit
f42cfb25
authored
May 04, 2022
by
未闻皂名
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2022/5/4 新增:魔术的幕布,bug修复
parent
2a44938d
Pipeline
#12449
passed with stages
in 2 minutes and 45 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
33 additions
and
2 deletions
+33
-2
RD Patch.cdb
RD Patch.cdb
+0
-0
script/RDValue.lua
script/RDValue.lua
+2
-2
script/c120217018.lua
script/c120217018.lua
+31
-0
No files found.
RD Patch.cdb
View file @
f42cfb25
No preview for this file type
script/RDValue.lua
View file @
f42cfb25
...
...
@@ -5,7 +5,7 @@ RushDuel = RushDuel or {}
function
RushDuel
.
ValueDoubleTribute
(
attribute
,
race
,
ignore
)
return
function
(
e
,
c
)
if
e
==
nil
then
return
ignore
,
attribute
,
race
return
ignore
or
false
,
attribute
or
0
,
race
or
0
end
return
(
attribute
==
nil
or
c
:
IsAttribute
(
attribute
))
and
(
race
==
nil
or
c
:
IsRace
(
race
))
end
...
...
@@ -17,7 +17,7 @@ function RushDuel.ValueEffectIndesType(self_type, opponent_type, ignore)
local
o_type
=
opponent_type
or
0
return
function
(
e
,
re
,
rp
)
if
e
==
nil
then
return
ignore
,
s_type
,
o_type
return
ignore
or
false
,
s_type
or
0
,
o_type
or
0
end
local
tp
=
e
:
GetHandlerPlayer
()
if
rp
==
tp
then
...
...
script/c120217018.lua
0 → 100644
View file @
f42cfb25
local
m
=
120217018
local
cm
=
_G
[
"c"
..
m
]
cm
.
name
=
"魔术的幕布"
function
cm
.
initial_effect
(
c
)
--Activate
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetCost
(
cm
.
cost
)
e1
:
SetTarget
(
cm
.
target
)
e1
:
SetOperation
(
cm
.
activate
)
c
:
RegisterEffect
(
e1
)
end
--Activate
cm
.
indval
=
RD
.
ValueEffectIndesType
(
0
,
TYPE_TRAP
)
function
cm
.
spfilter
(
c
,
e
,
tp
)
return
c
:
IsRace
(
RACE_SPELLCASTER
)
and
RD
.
IsCanBeSpecialSummoned
(
c
,
e
,
tp
,
POS_FACEUP
)
end
cm
.
cost
=
RD
.
CostPayLP
(
1000
)
function
cm
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetMZoneCount
(
tp
)
>
0
and
Duel
.
IsExistingMatchingCard
(
cm
.
spfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
,
e
,
tp
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_HAND
)
end
function
cm
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
RD
.
SelectAndSpecialSummon
(
cm
.
spfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
1
,
nil
,
e
,
POS_FACEUP
)
~=
0
then
local
tc
=
Duel
.
GetOperatedGroup
():
GetFirst
()
RD
.
AttachEffectIndes
(
e
,
tc
,
cm
.
indval
,
aux
.
Stringid
(
m
,
1
),
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
end
end
\ No newline at end of file
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