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
3
Merge Requests
3
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
MyCard
ygopro-scripts-888
Commits
f78670ad
Commit
f78670ad
authored
Dec 11, 2021
by
mercury233
Committed by
GitHub
Dec 11, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix ダブル・アップ・チャンス
parent
6e80c558
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
c94770493.lua
c94770493.lua
+8
-4
No files found.
c94770493.lua
View file @
f78670ad
...
@@ -19,12 +19,12 @@ function c94770493.operation(e,tp,eg,ep,ev,re,r,rp)
...
@@ -19,12 +19,12 @@ function c94770493.operation(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
:
IsFaceup
()
and
tc
:
IsRelateToEffect
(
e
)
and
tc
:
GetFlagEffect
(
94770493
)
==
0
then
if
tc
:
IsFaceup
()
and
tc
:
IsRelateToEffect
(
e
)
and
tc
:
GetFlagEffect
(
94770493
)
==
0
then
tc
:
RegisterFlagEffect
(
94770493
,
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_
END
,
0
,
1
)
tc
:
RegisterFlagEffect
(
94770493
,
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_
BATTLE
,
0
,
1
)
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_EXTRA_ATTACK
)
e1
:
SetCode
(
EFFECT_EXTRA_ATTACK
)
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_
BATTLE
)
tc
:
RegisterEffect
(
e1
)
tc
:
RegisterEffect
(
e1
)
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
...
@@ -33,13 +33,17 @@ function c94770493.operation(e,tp,eg,ep,ev,re,r,rp)
...
@@ -33,13 +33,17 @@ function c94770493.operation(e,tp,eg,ep,ev,re,r,rp)
e2
:
SetCode
(
EFFECT_SET_ATTACK_FINAL
)
e2
:
SetCode
(
EFFECT_SET_ATTACK_FINAL
)
e2
:
SetCondition
(
c94770493
.
atkcon
)
e2
:
SetCondition
(
c94770493
.
atkcon
)
e2
:
SetValue
(
c94770493
.
atkval
)
e2
:
SetValue
(
c94770493
.
atkval
)
e2
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_
DAMAGE_CAL
+
PHASE_END
)
e2
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_
BATTLE
)
tc
:
RegisterEffect
(
e2
)
tc
:
RegisterEffect
(
e2
)
end
end
end
end
function
c94770493
.
atkcon
(
e
)
function
c94770493
.
atkcon
(
e
)
local
ph
=
Duel
.
GetCurrentPhase
()
local
ph
=
Duel
.
GetCurrentPhase
()
return
ph
==
PHASE_DAMAGE
or
ph
==
PHASE_DAMAGE_CAL
if
(
ph
==
PHASE_DAMAGE
or
ph
==
PHASE_DAMAGE_CAL
)
and
Duel
.
GetAttacker
()
==
e
:
GetHandler
()
then
e
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_DAMAGE_CAL
+
PHASE_BATTLE
)
return
true
end
return
false
end
end
function
c94770493
.
atkval
(
e
,
c
)
function
c94770493
.
atkval
(
e
,
c
)
return
e
:
GetHandler
():
GetAttack
()
*
2
return
e
:
GetHandler
():
GetAttack
()
*
2
...
...
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