Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-scripts-888
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
3
Merge Requests
3
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-scripts-888
Commits
2e258d00
Commit
2e258d00
authored
Jul 19, 2021
by
salix5
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: add hint to cards in public
parent
c6b4c50d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
2 deletions
+9
-2
c56673480.lua
c56673480.lua
+5
-2
c69217334.lua
c69217334.lua
+2
-0
c87102774.lua
c87102774.lua
+2
-0
No files found.
c56673480.lua
View file @
2e258d00
...
...
@@ -55,16 +55,19 @@ function c56673480.target(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DRAW
,
nil
,
0
,
PLAYER_ALL
,
1
)
end
function
c56673480
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
not
e
:
GetHandler
():
IsRelateToEffect
(
e
)
then
return
end
local
lp0
=
Duel
.
GetLP
(
tp
)
if
lp0
>=
1000
then
Duel
.
SetLP
(
tp
,
lp0
-
1000
)
Duel
.
Draw
(
tp
,
1
,
REASON_EFFECT
)
else
Duel
.
SetLP
(
tp
,
0
)
end
local
lp1
=
Duel
.
GetLP
(
1
-
tp
)
if
lp1
>=
1000
then
Duel
.
SetLP
(
1
-
tp
,
lp1
-
1000
)
Duel
.
Draw
(
1
-
tp
,
1
,
REASON_EFFECT
)
else
Duel
.
SetLP
(
1
-
tp
,
0
)
end
end
function
c56673480
.
drop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
@@ -77,7 +80,7 @@ function c56673480.drop(e,tp,eg,ep,ev,re,r,rp)
local
tc
=
eg
:
GetFirst
()
while
tc
do
pg
:
AddCard
(
tc
)
tc
:
RegisterFlagEffect
(
56673481
,
RESET_EVENT
+
RESETS_STANDARD
,
0
,
1
)
tc
:
RegisterFlagEffect
(
56673481
,
RESET_EVENT
+
RESETS_STANDARD
,
EFFECT_FLAG_CLIENT_HINT
,
1
,
0
,
66
)
tc
=
eg
:
GetNext
()
end
end
...
...
c69217334.lua
View file @
2e258d00
...
...
@@ -52,8 +52,10 @@ function c69217334.lvop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
ConfirmCards
(
1
-
tp
,
cg
)
local
pc
=
cg
:
GetFirst
()
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
66
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetCode
(
EFFECT_PUBLIC
)
e2
:
SetProperty
(
EFFECT_FLAG_CLIENT_HINT
)
e2
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
pc
:
RegisterEffect
(
e2
)
if
tc
:
IsRelateToEffect
(
e
)
then
...
...
c87102774.lua
View file @
2e258d00
...
...
@@ -22,7 +22,9 @@ function c87102774.reccost(e,tp,eg,ep,ev,re,r,rp,chk)
if
chk
==
0
then
return
not
e
:
GetHandler
():
IsPublic
()
end
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetDescription
(
66
)
e1
:
SetCode
(
EFFECT_PUBLIC
)
e1
:
SetProperty
(
EFFECT_FLAG_CLIENT_HINT
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
e
:
GetHandler
():
RegisterEffect
(
e1
)
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