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
a1410403
Commit
a1410403
authored
Apr 21, 2020
by
DailyShana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix 禁じられた聖典
parent
407ce476
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
18 deletions
+5
-18
c54773234.lua
c54773234.lua
+5
-18
No files found.
c54773234.lua
View file @
a1410403
...
@@ -36,21 +36,15 @@ function c54773234.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -36,21 +36,15 @@ function c54773234.activate(e,tp,eg,ep,ev,re,r,rp)
e3
:
SetTargetRange
(
LOCATION_MZONE
,
LOCATION_MZONE
)
e3
:
SetTargetRange
(
LOCATION_MZONE
,
LOCATION_MZONE
)
e3
:
SetReset
(
RESET_PHASE
+
PHASE_DAMAGE
)
e3
:
SetReset
(
RESET_PHASE
+
PHASE_DAMAGE
)
Duel
.
RegisterEffect
(
e3
,
tp
)
Duel
.
RegisterEffect
(
e3
,
tp
)
Duel
.
AdjustInstantly
()
if
a
:
IsRelateToBattle
()
then
if
a
:
IsRelateToBattle
()
then
local
aa
=
a
:
GetTextAttack
()
local
ad
=
a
:
GetTextDefense
()
if
a
:
IsImmuneToEffect
(
e
)
then
aa
=
a
:
GetBaseAttack
()
ad
=
a
:
GetBaseDefense
()
end
if
aa
<
0
then
aa
=
0
end
if
ad
<
0
then
ad
=
0
end
local
e4
=
Effect
.
CreateEffect
(
c
)
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetType
(
EFFECT_TYPE_SINGLE
)
e4
:
SetType
(
EFFECT_TYPE_SINGLE
)
e4
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
+
EFFECT_FLAG_IGNORE_IMMUNE
)
e4
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
+
EFFECT_FLAG_IGNORE_IMMUNE
)
e4
:
SetRange
(
LOCATION_MZONE
)
e4
:
SetRange
(
LOCATION_MZONE
)
e4
:
SetCode
(
EFFECT_SET_ATTACK_FINAL
)
e4
:
SetCode
(
EFFECT_SET_ATTACK_FINAL
)
e4
:
SetReset
(
RESET_PHASE
+
PHASE_DAMAGE
)
e4
:
SetReset
(
RESET_PHASE
+
PHASE_DAMAGE
)
e4
:
SetValue
(
a
a
)
e4
:
SetValue
(
a
:
GetBaseAttack
()
)
a
:
RegisterEffect
(
e4
,
true
)
a
:
RegisterEffect
(
e4
,
true
)
local
e5
=
Effect
.
CreateEffect
(
c
)
local
e5
=
Effect
.
CreateEffect
(
c
)
e5
:
SetType
(
EFFECT_TYPE_SINGLE
)
e5
:
SetType
(
EFFECT_TYPE_SINGLE
)
...
@@ -58,23 +52,16 @@ function c54773234.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -58,23 +52,16 @@ function c54773234.activate(e,tp,eg,ep,ev,re,r,rp)
e5
:
SetRange
(
LOCATION_MZONE
)
e5
:
SetRange
(
LOCATION_MZONE
)
e5
:
SetCode
(
EFFECT_SET_DEFENSE_FINAL
)
e5
:
SetCode
(
EFFECT_SET_DEFENSE_FINAL
)
e5
:
SetReset
(
RESET_PHASE
+
PHASE_DAMAGE
)
e5
:
SetReset
(
RESET_PHASE
+
PHASE_DAMAGE
)
e5
:
SetValue
(
a
d
)
e5
:
SetValue
(
a
:
GetBaseDefense
()
)
a
:
RegisterEffect
(
e5
,
true
)
a
:
RegisterEffect
(
e5
,
true
)
end
end
if
d
and
d
:
IsRelateToBattle
()
then
if
d
and
d
:
IsRelateToBattle
()
then
local
da
=
d
:
GetTextAttack
()
local
dd
=
d
:
GetTextDefense
()
if
d
:
IsImmuneToEffect
(
e
)
then
da
=
d
:
GetBaseAttack
()
dd
=
d
:
GetBaseDefense
()
end
if
da
<
0
then
da
=
0
end
if
dd
<
0
then
dd
=
0
end
local
e6
=
Effect
.
CreateEffect
(
c
)
local
e6
=
Effect
.
CreateEffect
(
c
)
e6
:
SetType
(
EFFECT_TYPE_SINGLE
)
e6
:
SetType
(
EFFECT_TYPE_SINGLE
)
e6
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
+
EFFECT_FLAG_IGNORE_IMMUNE
)
e6
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
+
EFFECT_FLAG_IGNORE_IMMUNE
)
e6
:
SetRange
(
LOCATION_MZONE
)
e6
:
SetRange
(
LOCATION_MZONE
)
e6
:
SetCode
(
EFFECT_SET_ATTACK_FINAL
)
e6
:
SetCode
(
EFFECT_SET_ATTACK_FINAL
)
e6
:
SetValue
(
d
a
)
e6
:
SetValue
(
d
:
GetBaseAttack
()
)
e6
:
SetReset
(
RESET_PHASE
+
PHASE_DAMAGE
)
e6
:
SetReset
(
RESET_PHASE
+
PHASE_DAMAGE
)
d
:
RegisterEffect
(
e6
,
true
)
d
:
RegisterEffect
(
e6
,
true
)
local
e7
=
Effect
.
CreateEffect
(
c
)
local
e7
=
Effect
.
CreateEffect
(
c
)
...
@@ -82,7 +69,7 @@ function c54773234.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -82,7 +69,7 @@ function c54773234.activate(e,tp,eg,ep,ev,re,r,rp)
e7
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
+
EFFECT_FLAG_IGNORE_IMMUNE
)
e7
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
+
EFFECT_FLAG_IGNORE_IMMUNE
)
e7
:
SetRange
(
LOCATION_MZONE
)
e7
:
SetRange
(
LOCATION_MZONE
)
e7
:
SetCode
(
EFFECT_SET_DEFENSE_FINAL
)
e7
:
SetCode
(
EFFECT_SET_DEFENSE_FINAL
)
e7
:
SetValue
(
d
d
)
e7
:
SetValue
(
d
:
GetBaseDefense
()
)
e7
:
SetReset
(
RESET_PHASE
+
PHASE_DAMAGE
)
e7
:
SetReset
(
RESET_PHASE
+
PHASE_DAMAGE
)
d
:
RegisterEffect
(
e7
,
true
)
d
:
RegisterEffect
(
e7
,
true
)
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