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
2b92a28f
Commit
2b92a28f
authored
May 01, 2018
by
mercury233
Committed by
nanahira
May 01, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix brackets (#1041)
parent
5a924ae8
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
c12632096.lua
c12632096.lua
+1
-1
c88406570.lua
c88406570.lua
+1
-1
c99357565.lua
c99357565.lua
+1
-1
No files found.
c12632096.lua
View file @
2b92a28f
...
...
@@ -24,7 +24,7 @@ function c12632096.ctfilter(c)
end
function
c12632096
.
ctcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
c
=
e
:
GetHandler
()
local
rt
=
math.min
(
Duel
.
GetMatchingGroupCount
(
c12632096
.
ctfilter
,
tp
,
0
,
LOCATION_MZONE
,
nil
),(
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
,
tp
,
LOCATION_REASON_CONTROL
)
,
c
:
GetOverlayCount
(),
3
)
)
local
rt
=
math.min
(
Duel
.
GetMatchingGroupCount
(
c12632096
.
ctfilter
,
tp
,
0
,
LOCATION_MZONE
,
nil
),(
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
,
tp
,
LOCATION_REASON_CONTROL
)
),
c
:
GetOverlayCount
(),
3
)
if
chk
==
0
then
return
rt
>
0
and
c
:
CheckRemoveOverlayCard
(
tp
,
1
,
REASON_COST
)
end
c
:
RemoveOverlayCard
(
tp
,
1
,
rt
,
REASON_COST
)
local
ct
=
Duel
.
GetOperatedGroup
():
GetCount
()
...
...
c88406570.lua
View file @
2b92a28f
...
...
@@ -57,7 +57,7 @@ function c88406570.spop(e,tp,eg,ep,ev,re,r,rp)
if
g1
:
GetCount
()
>
0
then
local
ct
=
Duel
.
SpecialSummon
(
g1
,
0
,
1
-
tp
,
1
-
tp
,
false
,
false
,
POS_FACEUP
)
local
zone
=
c
:
GetLinkedZone
(
tp
)
ct
=
math.min
(
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
,
tp
,
LOCATION_REASON_TOFIELD
,
zone
),
ct
)
ct
=
math.min
(
(
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
,
tp
,
LOCATION_REASON_TOFIELD
,
zone
)
),
ct
)
if
zone
~=
0
and
ct
>
0
and
c
:
IsRelateToEffect
(
e
)
then
if
Duel
.
IsPlayerAffectedByEffect
(
tp
,
59822133
)
then
ct
=
1
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
...
...
c99357565.lua
View file @
2b92a28f
...
...
@@ -50,7 +50,7 @@ function c99357565.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsDiscardable
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
)
end
local
ct
=
2
if
Duel
.
IsPlayerAffectedByEffect
(
tp
,
59822133
)
then
ct
=
1
end
ct
=
math.min
(
ct
,
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
),
ct
=
math.min
(
ct
,
(
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
),
Duel
.
GetMatchingGroupCount
(
c99357565
.
spfilter
,
tp
,
LOCATION_HAND
+
LOCATION_GRAVE
+
LOCATION_DECK
,
0
,
nil
,
e
,
tp
))
local
cg
=
Duel
.
DiscardHand
(
tp
,
Card
.
IsDiscardable
,
1
,
ct
,
REASON_COST
+
REASON_DISCARD
,
nil
)
e
:
SetLabel
(
cg
)
...
...
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