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
f6be3a1c
Commit
f6be3a1c
authored
Jun 16, 2019
by
DailyShana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix Fluorohydride/ygopro#2214
parent
34a75490
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
7 deletions
+14
-7
c69155991.lua
c69155991.lua
+14
-7
No files found.
c69155991.lua
View file @
f6be3a1c
...
...
@@ -15,11 +15,11 @@ function c69155991.initial_effect(c)
e2
:
SetOperation
(
c69155991
.
desop1
)
c
:
RegisterEffect
(
e2
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
)
e3
:
SetCode
(
EFFECT_SELF_DESTROY
)
e3
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetCondition
(
c69155991
.
descon
)
e3
:
SetCode
(
EVENT_BATTLED
)
e3
:
SetOperation
(
c69155991
.
desop2
)
e3
:
SetLabelObject
(
e2
)
c
:
RegisterEffect
(
e3
)
--to grave
local
e4
=
Effect
.
CreateEffect
(
c
)
...
...
@@ -42,10 +42,17 @@ function c69155991.desop1(e,tp,eg,ep,ev,re,r,rp)
local
c
=
e
:
GetHandler
()
if
c
:
GetFlagEffect
(
69155991
)
==
0
then
return
end
c
:
ResetFlagEffect
(
69155991
)
c
:
RegisterFlagEffect
(
69155992
,
RESET_EVENT
+
RESETS_STANDARD
,
0
,
1
)
local
ph
=
Duel
.
GetCurrentPhase
()
if
(
ph
==
PHASE_DAMAGE
or
ph
==
PHASE_DAMAGE_CAL
)
and
not
Duel
.
IsDamageCalculated
()
then
c
:
RegisterFlagEffect
(
69155992
,
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_DAMAGE
,
0
,
1
)
else
Duel
.
Destroy
(
c
,
REASON_EFFECT
)
end
end
function
c69155991
.
descon
(
e
)
return
e
:
GetHandler
():
GetFlagEffect
(
69155992
)
~=
0
function
c69155991
.
desop2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
e
:
GetHandler
():
GetFlagEffect
(
69155992
)
~=
0
then
Duel
.
Destroy
(
e
:
GetHandler
(),
REASON_EFFECT
)
end
end
function
c69155991
.
tgcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
...
...
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