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
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
Vee4
ygopro-scripts-888
Commits
328e5a9f
Commit
328e5a9f
authored
Apr 29, 2022
by
Chrono-Genex
Committed by
GitHub
Apr 29, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix (#1872)
parent
bc27a780
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
c16178681.lua
c16178681.lua
+3
-2
No files found.
c16178681.lua
View file @
328e5a9f
...
...
@@ -8,7 +8,6 @@ function c16178681.initial_effect(c)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e2
:
SetCode
(
EVENT_PRE_BATTLE_DAMAGE
)
e2
:
SetRange
(
LOCATION_PZONE
)
e2
:
SetCountLimit
(
1
,
16178681
)
e2
:
SetCondition
(
c16178681
.
rdcon
)
e2
:
SetOperation
(
c16178681
.
rdop
)
c
:
RegisterEffect
(
e2
)
...
...
@@ -35,11 +34,13 @@ end
function
c16178681
.
rdcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetAttacker
()
if
tc
:
IsControler
(
1
-
tp
)
then
tc
=
Duel
.
GetAttackTarget
()
end
return
ep
==
tp
and
tc
and
tc
:
IsType
(
TYPE_PENDULUM
)
return
ep
==
tp
and
tc
and
tc
:
IsType
(
TYPE_PENDULUM
)
and
Duel
.
GetFlagEffect
(
tp
,
16178681
)
==
0
end
function
c16178681
.
rdop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
16178681
,
2
))
then
Duel
.
Hint
(
HINT_CARD
,
0
,
16178681
)
Duel
.
ChangeBattleDamage
(
tp
,
0
)
Duel
.
RegisterFlagEffect
(
tp
,
16178681
,
RESET_PHASE
+
PHASE_END
,
0
,
1
)
end
end
function
c16178681
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
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