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
80ab3021
Commit
80ab3021
authored
Feb 15, 2020
by
mallu11
Committed by
GitHub
Feb 15, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix フューチャー・ドライブ (#1332)
parent
4e0ff005
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
48 additions
and
29 deletions
+48
-29
c12508268.lua
c12508268.lua
+48
-29
No files found.
c12508268.lua
View file @
80ab3021
...
@@ -23,51 +23,70 @@ function c12508268.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -23,51 +23,70 @@ function c12508268.activate(e,tp,eg,ep,ev,re,r,rp)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsFacedown
()
or
not
tc
:
IsRelateToEffect
(
e
)
or
tc
:
IsControler
(
1
-
tp
)
then
return
end
if
tc
:
IsFacedown
()
or
not
tc
:
IsRelateToEffect
(
e
)
or
tc
:
IsControler
(
1
-
tp
)
then
return
end
tc
:
RegisterFlagEffect
(
12508268
,
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
,
0
,
1
,
tc
:
GetFieldID
())
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_ATTACK_ALL
)
e1
:
SetCode
(
EFFECT_ATTACK_ALL
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetValue
(
1
)
e1
:
SetValue
(
1
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
e1
:
SetCondition
(
c12508268
.
atkcon
)
e1
:
SetOwnerPlayer
(
tp
)
tc
:
RegisterEffect
(
e1
)
tc
:
RegisterEffect
(
e1
)
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_
SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e2
:
SetType
(
EFFECT_TYPE_
FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e2
:
SetCode
(
EVENT_BATTLE_START
)
e2
:
SetCode
(
EVENT_BATTLE_START
)
e2
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e2
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
e2
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
e2
:
SetLabelObject
(
tc
)
e2
:
SetCondition
(
c12508268
.
discon
)
e2
:
SetOperation
(
c12508268
.
disop
)
e2
:
SetOperation
(
c12508268
.
disop
)
tc
:
RegisterEffect
(
e2
)
Duel
.
RegisterEffect
(
e2
,
tp
)
local
e3
=
Effect
.
CreateEffect
(
c
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e3
:
SetCode
(
EFFECT_DISABLE
)
e3
:
SetCode
(
EVENT_BATTLE_DESTROYING
)
e3
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e3
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetLabelObject
(
tc
)
e3
:
SetTargetRange
(
0
,
LOCATION_MZONE
)
e3
:
SetCondition
(
c12508268
.
damcon
)
e3
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
e3
:
SetOperation
(
c12508268
.
damop
)
e3
:
SetTarget
(
c12508268
.
distg
)
Duel
.
RegisterEffect
(
e3
,
tp
)
tc
:
RegisterEffect
(
e3
)
end
local
e4
=
e3
:
Clone
()
function
c12508268
.
atkcon
(
e
)
e4
:
SetCode
(
EFFECT_DISABLE_EFFECT
)
return
e
:
GetHandlerPlayer
()
==
e
:
GetOwnerPlayer
()
tc
:
RegisterEffect
(
e4
)
end
local
e5
=
Effect
.
CreateEffect
(
c
)
function
c12508268
.
discon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
e5
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
local
tc
=
e
:
GetLabelObject
()
e5
:
SetCode
(
EVENT_BATTLE_DESTROYING
)
local
fid
=
tc
:
GetFlagEffectLabel
(
12508268
)
e5
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
return
fid
and
fid
==
tc
:
GetFieldID
()
e5
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
e5
:
SetCondition
(
aux
.
bdocon
)
e5
:
SetOperation
(
c12508268
.
damop
)
tc
:
RegisterEffect
(
e5
)
end
end
function
c12508268
.
disop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c12508268
.
disop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
bc
=
e
:
GetHandler
():
GetBattleTarget
()
local
c
=
e
:
GetHandler
()
if
not
bc
then
return
end
local
ac
=
Duel
.
GetAttacker
()
bc
:
RegisterFlagEffect
(
12508268
,
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_DAMAGE
,
0
,
1
)
local
bc
=
Duel
.
GetAttackTarget
()
local
tc
=
e
:
GetLabelObject
()
if
not
ac
or
not
bc
then
return
end
if
ac
~=
tc
then
ac
,
bc
=
bc
,
ac
end
if
ac
==
tc
and
bc
:
IsControler
(
1
-
tp
)
then
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_DISABLE
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_DAMAGE
)
bc
:
RegisterEffect
(
e1
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetCode
(
EFFECT_DISABLE_EFFECT
)
e2
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_DAMAGE
)
bc
:
RegisterEffect
(
e2
)
end
end
end
function
c12508268
.
distg
(
e
,
c
)
function
c12508268
.
damcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
c
:
GetFlagEffect
(
12508268
)
~=
0
local
tc
=
e
:
GetLabelObject
()
local
fid
=
tc
:
GetFlagEffectLabel
(
12508268
)
local
bc
=
tc
:
GetBattleTarget
()
return
fid
and
fid
==
tc
:
GetFieldID
()
and
tc
==
eg
:
GetFirst
()
and
tc
:
IsRelateToBattle
()
and
bc
and
bc
:
GetPreviousControler
()
==
1
-
tp
end
end
function
c12508268
.
damop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c12508268
.
damop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
bc
=
e
:
GetHandler
():
GetBattleTarget
()
local
tc
=
e
:
GetLabelObject
()
local
bc
=
tc
:
GetBattleTarget
()
if
not
bc
then
return
end
if
not
bc
then
return
end
local
dam
=
math.max
(
bc
:
GetBaseAttack
(),
0
)
local
dam
=
math.max
(
bc
:
GetBaseAttack
(),
0
)
if
dam
>
0
then
if
dam
>
0
then
...
...
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