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
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
Commits
f1868c08
Commit
f1868c08
authored
Feb 09, 2017
by
mercury233
Committed by
DailyShana
Feb 09, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix 醒めない悪夢, 真竜皇の復活 etc. (#797)
parent
c01580c0
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
29 additions
and
16 deletions
+29
-16
c35125879.lua
c35125879.lua
+13
-7
c61529473.lua
c61529473.lua
+14
-7
c69452756.lua
c69452756.lua
+2
-2
No files found.
c35125879.lua
View file @
f1868c08
...
...
@@ -51,8 +51,11 @@ end
function
c35125879
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
c35125879
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
end
if
chk
==
0
then
return
true
end
local
b1
=
c35125879
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
0
)
local
b2
=
c35125879
.
sumcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
and
c35125879
.
sumtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
0
)
local
b1
=
c35125879
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
0
)
and
c35125879
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
0
)
local
b2
=
c35125879
.
sumcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
and
c35125879
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
0
)
and
c35125879
.
sumtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
0
)
if
(
b1
or
b2
)
and
Duel
.
SelectYesNo
(
tp
,
94
)
then
local
op
=
0
if
b1
and
b2
then
op
=
Duel
.
SelectOption
(
tp
,
aux
.
Stringid
(
35125879
,
0
),
aux
.
Stringid
(
35125879
,
1
))
...
...
@@ -62,11 +65,13 @@ function c35125879.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
e
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e
:
SetOperation
(
c35125879
.
spop
)
c35125879
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
1
)
c35125879
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
1
)
else
e
:
SetCategory
(
CATEGORY_SUMMON
)
e
:
SetProperty
(
0
)
e
:
SetOperation
(
c35125879
.
sumop
)
c35125879
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
1
)
c35125879
.
sumtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
1
)
end
else
...
...
@@ -76,7 +81,8 @@ function c35125879.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
end
end
function
c35125879
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
not
e
:
GetHandler
():
IsStatus
(
STATUS_CHAINING
)
end
if
chk
==
0
then
return
Duel
.
GetFlagEffect
(
tp
,
35125879
)
==
0
end
Duel
.
RegisterFlagEffect
(
tp
,
35125879
,
RESET_CHAIN
,
0
,
1
)
end
function
c35125879
.
spfilter
(
c
,
e
,
tp
)
return
c
:
IsSetCard
(
0xf9
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
POS_FACEUP_DEFENSE
)
...
...
@@ -85,8 +91,8 @@ function c35125879.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
tp
)
and
c35125879
.
spfilter
(
chkc
,
e
,
tp
)
end
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingTarget
(
c35125879
.
spfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
)
and
Duel
.
GetFlagEffect
(
tp
,
351258
79
)
==
0
end
Duel
.
RegisterFlagEffect
(
tp
,
351258
79
,
RESET_PHASE
+
PHASE_END
,
0
,
1
)
and
Duel
.
GetFlagEffect
(
tp
,
351258
80
)
==
0
end
Duel
.
RegisterFlagEffect
(
tp
,
351258
80
,
RESET_PHASE
+
PHASE_END
,
0
,
1
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c35125879
.
spfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
e
,
tp
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
g
,
1
,
0
,
0
)
...
...
@@ -114,8 +120,8 @@ function c35125879.sumfilter(c)
end
function
c35125879
.
sumtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c35125879
.
sumfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
)
and
Duel
.
GetFlagEffect
(
tp
,
3512588
0
)
==
0
end
Duel
.
RegisterFlagEffect
(
tp
,
3512588
0
,
RESET_PHASE
+
PHASE_END
,
0
,
1
)
and
Duel
.
GetFlagEffect
(
tp
,
3512588
1
)
==
0
end
Duel
.
RegisterFlagEffect
(
tp
,
3512588
1
,
RESET_PHASE
+
PHASE_END
,
0
,
1
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SUMMON
,
nil
,
1
,
0
,
0
)
end
function
c35125879
.
sumop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
c61529473.lua
View file @
f1868c08
...
...
@@ -52,8 +52,12 @@ end
function
c61529473
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
c61529473
.
atktg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
end
if
chk
==
0
then
return
true
end
local
b1
=
c61529473
.
atkcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
and
c61529473
.
atktg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
0
)
local
b2
=
c61529473
.
sumcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
and
c61529473
.
sumtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
0
)
local
b1
=
c61529473
.
atkcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
and
c61529473
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
0
)
and
c61529473
.
atktg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
0
)
local
b2
=
c61529473
.
sumcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
and
c61529473
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
0
)
and
c61529473
.
sumtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
0
)
if
(
b1
or
b2
)
and
Duel
.
SelectYesNo
(
tp
,
94
)
then
local
op
=
0
if
b1
and
b2
then
op
=
Duel
.
SelectOption
(
tp
,
aux
.
Stringid
(
61529473
,
0
),
aux
.
Stringid
(
61529473
,
1
))
...
...
@@ -63,11 +67,13 @@ function c61529473.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
e
:
SetCategory
(
CATEGORY_DESTROY
+
CATEGORY_ATKCHANGE
+
CATEGORY_DEFCHANGE
)
e
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e
:
SetOperation
(
c61529473
.
atkop
)
c61529473
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
1
)
c61529473
.
atktg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
1
)
else
e
:
SetCategory
(
CATEGORY_SUMMON
)
e
:
SetProperty
(
0
)
e
:
SetOperation
(
c61529473
.
sumop
)
c61529473
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
1
)
c61529473
.
sumtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
1
)
end
else
...
...
@@ -80,7 +86,8 @@ function c61529473.atkcon(e,tp,eg,ep,ev,re,r,rp)
return
Duel
.
GetCurrentPhase
()
~=
PHASE_DAMAGE
or
not
Duel
.
IsDamageCalculated
()
end
function
c61529473
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
not
e
:
GetHandler
():
IsStatus
(
STATUS_CHAINING
)
end
if
chk
==
0
then
return
Duel
.
GetFlagEffect
(
tp
,
61529473
)
==
0
end
Duel
.
RegisterFlagEffect
(
tp
,
61529473
,
RESET_CHAIN
,
0
,
1
)
end
function
c61529473
.
tgfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0xf9
)
...
...
@@ -90,8 +97,8 @@ function c61529473.atktg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_ONFIELD
)
and
chkc
:
IsControler
(
tp
)
and
c61529473
.
tgfilter
(
chkc
)
and
chkc
~=
c
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c61529473
.
tgfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
c
)
and
Duel
.
IsExistingMatchingCard
(
Card
.
IsFaceup
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
)
and
Duel
.
GetFlagEffect
(
tp
,
6152947
3
)
==
0
end
Duel
.
RegisterFlagEffect
(
tp
,
6152947
3
,
RESET_PHASE
+
PHASE_END
,
0
,
1
)
and
Duel
.
GetFlagEffect
(
tp
,
6152947
4
)
==
0
end
Duel
.
RegisterFlagEffect
(
tp
,
6152947
4
,
RESET_PHASE
+
PHASE_END
,
0
,
1
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DESTROY
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c61529473
.
tgfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
1
,
c
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
1
,
0
,
0
)
...
...
@@ -127,8 +134,8 @@ function c61529473.sumfilter(c)
end
function
c61529473
.
sumtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c61529473
.
sumfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
)
and
Duel
.
GetFlagEffect
(
tp
,
6152947
4
)
==
0
end
Duel
.
RegisterFlagEffect
(
tp
,
6152947
4
,
RESET_PHASE
+
PHASE_END
,
0
,
1
)
and
Duel
.
GetFlagEffect
(
tp
,
6152947
5
)
==
0
end
Duel
.
RegisterFlagEffect
(
tp
,
6152947
5
,
RESET_PHASE
+
PHASE_END
,
0
,
1
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SUMMON
,
nil
,
1
,
0
,
0
)
end
function
c61529473
.
sumop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
c69452756.lua
View file @
f1868c08
...
...
@@ -40,9 +40,9 @@ function c69452756.target1(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
end
end
function
c69452756
.
cost2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
CheckLPCost
(
tp
,
1000
)
and
e
:
GetHandler
():
GetFlagEffect
(
69452756
)
==
0
end
if
chk
==
0
then
return
Duel
.
CheckLPCost
(
tp
,
1000
)
and
Duel
.
GetFlagEffect
(
tp
,
69452756
)
==
0
end
Duel
.
PayLPCost
(
tp
,
1000
)
e
:
GetHandler
():
RegisterFlagEffect
(
69452756
,
RESET_CHAIN
,
0
,
1
)
Duel
.
RegisterFlagEffect
(
tp
,
69452756
,
RESET_CHAIN
,
0
,
1
)
end
function
c69452756
.
target2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsOnField
()
and
c69452756
.
filter
(
chkc
)
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