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
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
Commits
6b5fd16b
Commit
6b5fd16b
authored
Nov 21, 2020
by
mercury233
Committed by
GitHub
Nov 21, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix 一か八か
parent
3f8a6a44
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
9 deletions
+6
-9
c74202664.lua
c74202664.lua
+6
-9
No files found.
c74202664.lua
View file @
6b5fd16b
...
@@ -40,13 +40,10 @@ function c74202664.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -40,13 +40,10 @@ function c74202664.activate(e,tp,eg,ep,ev,re,r,rp)
Duel
.
SpecialSummon
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummon
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
end
else
else
local
c
=
e
:
GetHandler
()
local
b1
=
Duel
.
GetLP
(
tp
)
~=
1000
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
local
ea
=
Duel
.
IsPlayerAffectedByEffect
(
1
-
tp
,
EFFECT_REVERSE_DAMAGE
)
local
p
=
c
:
GetControler
()
local
eb
=
Duel
.
IsPlayerAffectedByEffect
(
1
-
tp
,
EFFECT_REVERSE_RECOVER
)
local
b1
=
Duel
.
GetLP
(
p
)
~=
1000
local
b2
=
Duel
.
GetLP
(
1
-
tp
)
<
8000
and
(
ea
or
not
eb
)
local
ea
=
Duel
.
IsPlayerAffectedByEffect
(
1
-
p
,
EFFECT_REVERSE_DAMAGE
)
local
eb
=
Duel
.
IsPlayerAffectedByEffect
(
1
-
p
,
EFFECT_REVERSE_RECOVER
)
local
b2
=
Duel
.
GetLP
(
1
-
p
)
<
8000
and
(
ea
or
not
eb
)
local
b3
=
true
local
b3
=
true
local
off
=
0
local
off
=
0
local
ops
=
{}
local
ops
=
{}
...
@@ -69,9 +66,9 @@ function c74202664.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -69,9 +66,9 @@ function c74202664.activate(e,tp,eg,ep,ev,re,r,rp)
end
end
local
op
=
Duel
.
SelectOption
(
1
-
tp
,
table.unpack
(
ops
))
local
op
=
Duel
.
SelectOption
(
1
-
tp
,
table.unpack
(
ops
))
if
opval
[
op
]
==
1
then
if
opval
[
op
]
==
1
then
Duel
.
SetLP
(
p
,
1000
)
Duel
.
SetLP
(
t
p
,
1000
)
elseif
opval
[
op
]
==
2
then
elseif
opval
[
op
]
==
2
then
Duel
.
Recover
(
1
-
p
,
8000
-
Duel
.
GetLP
(
1
-
p
),
REASON_EFFECT
)
Duel
.
Recover
(
1
-
tp
,
8000
-
Duel
.
GetLP
(
1
-
t
p
),
REASON_EFFECT
)
else
return
end
else
return
end
end
end
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