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
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
Vee4
ygopro-scripts-888
Commits
ef32ed0d
Commit
ef32ed0d
authored
Dec 05, 2021
by
Chrono-Genex
Committed by
GitHub
Dec 05, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix Raiza the Mega Monarch and Thestalos the Mega Monarch (#1763)
parent
c8b2b2ff
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
35 additions
and
30 deletions
+35
-30
c69230391.lua
c69230391.lua
+10
-9
c69327790.lua
c69327790.lua
+25
-21
No files found.
c69230391.lua
View file @
ef32ed0d
...
@@ -57,15 +57,16 @@ function c69230391.target(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -57,15 +57,16 @@ function c69230391.target(e,tp,eg,ep,ev,re,r,rp,chk)
end
end
function
c69230391
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c69230391
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetFieldGroup
(
tp
,
0
,
LOCATION_HAND
)
local
g
=
Duel
.
GetFieldGroup
(
tp
,
0
,
LOCATION_HAND
)
if
g
:
GetCount
()
==
0
then
return
end
if
g
:
GetCount
()
>
0
then
Duel
.
ConfirmCards
(
tp
,
g
)
Duel
.
ConfirmCards
(
tp
,
g
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DISCARD
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_DISCARD
)
local
hg
=
g
:
Select
(
tp
,
1
,
1
,
nil
)
local
hg
=
g
:
Select
(
tp
,
1
,
1
,
nil
)
Duel
.
SendtoGrave
(
hg
,
REASON_EFFECT
+
REASON_DISCARD
)
Duel
.
SendtoGrave
(
hg
,
REASON_EFFECT
+
REASON_DISCARD
)
Duel
.
ShuffleHand
(
1
-
tp
)
Duel
.
ShuffleHand
(
1
-
tp
)
local
tc
=
hg
:
GetFirst
()
local
tc
=
hg
:
GetFirst
()
if
tc
:
IsType
(
TYPE_MONSTER
)
then
if
tc
:
IsType
(
TYPE_MONSTER
)
then
Duel
.
Damage
(
1
-
tp
,
tc
:
GetLevel
()
*
200
,
REASON_EFFECT
)
Duel
.
Damage
(
1
-
tp
,
tc
:
GetLevel
()
*
200
,
REASON_EFFECT
)
end
end
end
if
e
:
GetLabel
()
==
1
then
if
e
:
GetLabel
()
==
1
then
Duel
.
BreakEffect
()
Duel
.
BreakEffect
()
...
...
c69327790.lua
View file @
ef32ed0d
...
@@ -51,40 +51,44 @@ end
...
@@ -51,40 +51,44 @@ end
function
c69327790
.
tdtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c69327790
.
tdtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
false
end
if
chkc
then
return
false
end
if
chk
==
0
then
return
true
end
if
chk
==
0
then
return
true
end
local
g1
=
nil
if
Duel
.
IsExistingTarget
(
nil
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
nil
)
if
Duel
.
IsExistingTarget
(
nil
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
nil
)
and
Duel
.
IsExistingTarget
(
nil
,
tp
,
LOCATION_GRAVE
,
LOCATION_GRAVE
,
1
,
nil
)
then
and
Duel
.
IsExistingTarget
(
nil
,
tp
,
LOCATION_GRAVE
,
LOCATION_GRAVE
,
1
,
nil
)
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
local
g1
=
Duel
.
SelectTarget
(
tp
,
nil
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
1
,
nil
)
g1
=
Duel
.
SelectTarget
(
tp
,
nil
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
1
,
nil
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
local
g2
=
Duel
.
SelectTarget
(
tp
,
nil
,
tp
,
LOCATION_GRAVE
,
LOCATION_GRAVE
,
1
,
1
,
nil
)
local
g2
=
Duel
.
SelectTarget
(
tp
,
nil
,
tp
,
LOCATION_GRAVE
,
LOCATION_GRAVE
,
1
,
1
,
nil
)
if
e
:
GetLabel
()
==
1
and
Duel
.
IsExistingTarget
(
Card
.
IsAbleToHand
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
g1
:
GetFirst
())
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
69327790
,
2
))
then
e
:
SetCategory
(
CATEGORY_TODECK
+
CATEGORY_TOHAND
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RTOHAND
)
local
g3
=
Duel
.
SelectTarget
(
tp
,
Card
.
IsAbleToHand
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
1
,
g1
:
GetFirst
())
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
g3
,
1
,
0
,
0
)
end
e
:
SetLabelObject
(
g2
:
GetFirst
())
e
:
SetLabelObject
(
g2
:
GetFirst
())
g1
:
Merge
(
g2
)
g1
:
Merge
(
g2
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TODECK
,
g1
,
2
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TODECK
,
g1
,
2
,
0
,
0
)
end
end
if
e
:
GetLabel
()
==
1
and
Duel
.
IsExistingTarget
(
Card
.
IsAbleToHand
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
g1
)
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
69327790
,
2
))
then
e
:
SetCategory
(
CATEGORY_TODECK
+
CATEGORY_TOHAND
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_RTOHAND
)
local
g3
=
Duel
.
SelectTarget
(
tp
,
Card
.
IsAbleToHand
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
1
,
g1
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
g3
,
1
,
0
,
0
)
else
e
:
SetCategory
(
CATEGORY_TODECK
)
end
end
end
function
c69327790
.
tdop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c69327790
.
tdop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
ex
,
g1
=
Duel
.
GetOperationInfo
(
0
,
CATEGORY_TODECK
)
local
ex
,
g1
=
Duel
.
GetOperationInfo
(
0
,
CATEGORY_TODECK
)
local
ex2
,
g2
=
Duel
.
GetOperationInfo
(
0
,
CATEGORY_TOHAND
)
local
ex2
,
g2
=
Duel
.
GetOperationInfo
(
0
,
CATEGORY_TOHAND
)
if
not
g1
then
return
end
if
g1
then
local
sg1
=
g1
:
Filter
(
Card
.
IsRelateToEffect
,
nil
,
e
)
local
sg1
=
g1
:
Filter
(
Card
.
IsRelateToEffect
,
nil
,
e
)
if
sg1
:
GetCount
()
>
0
and
Duel
.
SendtoDeck
(
sg1
,
nil
,
SEQ_DECKTOP
,
REASON_EFFECT
)
>
1
then
if
sg1
:
GetCount
()
>
0
and
Duel
.
SendtoDeck
(
sg1
,
nil
,
SEQ_DECKTOP
,
REASON_EFFECT
)
>
1
then
local
gc
=
e
:
GetLabelObject
()
local
gc
=
e
:
GetLabelObject
()
local
fc
=
sg1
:
GetFirst
()
local
fc
=
sg1
:
GetFirst
()
if
fc
==
gc
then
fc
=
sg1
:
GetNext
()
end
if
fc
==
gc
then
fc
=
sg1
:
GetNext
()
end
if
fc
:
GetControler
()
==
gc
:
GetControler
()
and
fc
:
IsLocation
(
LOCATION_DECK
)
and
gc
:
IsLocation
(
LOCATION_DECK
)
then
if
fc
:
GetControler
()
==
gc
:
GetControler
()
and
fc
:
IsLocation
(
LOCATION_DECK
)
and
gc
:
IsLocation
(
LOCATION_DECK
)
then
local
op
=
Duel
.
SelectOption
(
tp
,
aux
.
Stringid
(
69327790
,
3
),
aux
.
Stringid
(
69327790
,
4
))
local
op
=
Duel
.
SelectOption
(
tp
,
aux
.
Stringid
(
69327790
,
3
),
aux
.
Stringid
(
69327790
,
4
))
if
op
==
0
then
if
op
==
0
then
Duel
.
MoveSequence
(
fc
,
0
)
Duel
.
MoveSequence
(
fc
,
0
)
else
else
Duel
.
MoveSequence
(
gc
,
0
)
Duel
.
MoveSequence
(
gc
,
0
)
end
end
end
end
end
end
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