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
nanahira
ygopro-scripts
Commits
48b06489
You need to sign in or sign up before continuing.
Commit
48b06489
authored
Jun 12, 2019
by
salix5
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 幻煌の都 パシフィス
parent
56d125e4
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
36 additions
and
19 deletions
+36
-19
c2819435.lua
c2819435.lua
+34
-14
c50720316.lua
c50720316.lua
+2
-5
No files found.
c2819435.lua
View file @
48b06489
...
...
@@ -22,26 +22,33 @@ function c2819435.initial_effect(c)
local
e3
=
e2
:
Clone
()
e3
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
c
:
RegisterEffect
(
e3
)
--
token
--
chk
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e4
:
SetCode
(
EVENT_CHAINING
)
e4
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e4
:
SetRange
(
LOCATION_FZONE
)
e4
:
SetOperation
(
aux
.
chainreg
)
e4
:
SetOperation
(
c2819435
.
reg1
)
c
:
RegisterEffect
(
e4
)
local
e5
=
Effect
.
CreateEffect
(
c
)
e5
:
SetDescription
(
aux
.
Stringid
(
2819435
,
1
))
e5
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
+
CATEGORY_TOKEN
)
e5
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e5
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e5
:
SetCode
(
EVENT_CHAIN_SOLVED
)
e5
:
SetProperty
(
EFFECT_FLAG_
DELAY
)
e5
:
SetProperty
(
EFFECT_FLAG_
CANNOT_DISABLE
)
e5
:
SetRange
(
LOCATION_FZONE
)
e5
:
SetCondition
(
c2819435
.
spcon
)
e5
:
SetCost
(
c2819435
.
cost
)
e5
:
SetTarget
(
c2819435
.
sptg
)
e5
:
SetOperation
(
c2819435
.
spop
)
e5
:
SetOperation
(
c2819435
.
reg2
)
c
:
RegisterEffect
(
e5
)
--token
local
e6
=
Effect
.
CreateEffect
(
c
)
e6
:
SetDescription
(
aux
.
Stringid
(
2819435
,
1
))
e6
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
+
CATEGORY_TOKEN
)
e6
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e6
:
SetCode
(
EVENT_CHAIN_END
)
e6
:
SetRange
(
LOCATION_FZONE
)
e6
:
SetCondition
(
c2819435
.
spcon
)
e6
:
SetCost
(
c2819435
.
cost
)
e6
:
SetTarget
(
c2819435
.
sptg
)
e6
:
SetOperation
(
c2819435
.
spop
)
c
:
RegisterEffect
(
e6
)
--
Duel
.
AddCustomActivityCounter
(
2819435
,
ACTIVITY_SUMMON
,
c2819435
.
counterfilter
)
Duel
.
AddCustomActivityCounter
(
2819435
,
ACTIVITY_SPSUMMON
,
c2819435
.
counterfilter
)
...
...
@@ -77,6 +84,7 @@ end
function
c2819435
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
)
Duel
.
Hint
(
HINT_OPSELECTED
,
1
-
tp
,
e
:
GetDescription
())
end
function
c2819435
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
not
e
:
GetHandler
():
IsRelateToEffect
(
e
)
then
return
end
...
...
@@ -87,18 +95,30 @@ function c2819435.thop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
end
end
function
c2819435
.
reg1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
c
:
ResetFlagEffect
(
2819435
)
if
e
:
GetHandler
():
GetFlagEffect
(
1
)
==
0
then
e
:
GetHandler
():
RegisterFlagEffect
(
1
,
RESET_EVENT
+
RESETS_STANDARD
-
RESET_TURN_SET
+
RESET_CHAIN
,
0
,
1
)
end
end
function
c2819435
.
reg2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
rp
==
1
-
tp
and
e
:
GetHandler
():
GetFlagEffect
(
1
)
>
0
then
e
:
GetHandler
():
RegisterFlagEffect
(
2819435
,
RESET_EVENT
+
RESETS_STANDARD
,
0
,
1
)
end
end
function
c2819435
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
rp
==
1
-
tp
and
not
Duel
.
IsExistingMatchingCard
(
Card
.
IsType
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
,
TYPE_TOKEN
)
and
e
:
GetHandler
():
GetFlagEffect
(
1
)
>
0
return
not
Duel
.
IsExistingMatchingCard
(
Card
.
IsType
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
,
TYPE_TOKEN
)
and
e
:
GetHandler
():
GetFlagEffect
(
2819435
)
>
0
end
function
c2819435
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
2819436
,
0xfa
,
0x4011
,
2000
,
2000
,
6
,
RACE_WYRM
,
ATTRIBUTE_WATER
)
and
not
e
:
GetHandler
():
IsStatus
(
STATUS_CHAINING
)
end
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
2819436
,
0xfa
,
0x4011
,
2000
,
2000
,
6
,
RACE_WYRM
,
ATTRIBUTE_WATER
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOKEN
,
nil
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
0
,
0
)
Duel
.
Hint
(
HINT_OPSELECTED
,
1
-
tp
,
e
:
GetDescription
())
end
function
c2819435
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
not
e
:
GetHandler
():
IsRelateToEffect
(
e
)
then
return
end
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
then
return
end
if
not
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
2819436
,
0xfa
,
0x4011
,
2000
,
2000
,
6
,
RACE_WYRM
,
ATTRIBUTE_WATER
)
then
return
end
local
token
=
Duel
.
CreateToken
(
tp
,
2819436
)
...
...
c50720316.lua
View file @
48b06489
...
...
@@ -8,7 +8,6 @@ function c50720316.initial_effect(c)
e1
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e1
:
SetProperty
(
EFFECT_FLAG_DAMAGE_STEP
+
EFFECT_FLAG_DELAY
)
e1
:
SetCountLimit
(
1
,
50720316
)
e1
:
SetCost
(
c50720316
.
cost
)
e1
:
SetTarget
(
c50720316
.
thtg1
)
e1
:
SetOperation
(
c50720316
.
tgop1
)
c
:
RegisterEffect
(
e1
)
...
...
@@ -19,16 +18,13 @@ function c50720316.initial_effect(c)
e2
:
SetOperation
(
c50720316
.
tgop2
)
c
:
RegisterEffect
(
e2
)
end
function
c50720316
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
Duel
.
Hint
(
HINT_OPSELECTED
,
1
-
tp
,
e
:
GetDescription
())
end
function
c50720316
.
thfilter1
(
c
)
return
c
:
IsSetCard
(
0xa5
)
and
c
:
IsType
(
TYPE_QUICKPLAY
)
and
c
:
IsAbleToHand
()
end
function
c50720316
.
thtg1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c50720316
.
thfilter1
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
)
Duel
.
Hint
(
HINT_OPSELECTED
,
1
-
tp
,
e
:
GetDescription
())
end
function
c50720316
.
tgop1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
...
...
@@ -44,6 +40,7 @@ end
function
c50720316
.
thtg2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c50720316
.
thfilter2
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
)
Duel
.
Hint
(
HINT_OPSELECTED
,
1
-
tp
,
e
:
GetDescription
())
end
function
c50720316
.
tgop2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
...
...
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