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
c13a1062
Commit
c13a1062
authored
Oct 26, 2021
by
mercury233
Committed by
GitHub
Oct 26, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix Imperial Bower
can select 1 to hand and 1 to special summon
parent
75800c17
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
39 additions
and
17 deletions
+39
-17
c56673112.lua
c56673112.lua
+39
-17
No files found.
c56673112.lua
View file @
c13a1062
...
@@ -21,32 +21,54 @@ function c56673112.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -21,32 +21,54 @@ function c56673112.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
if
chk
==
0
then
return
e
:
GetHandler
():
IsReleasable
()
end
if
chk
==
0
then
return
e
:
GetHandler
():
IsReleasable
()
end
Duel
.
Release
(
e
:
GetHandler
(),
REASON_COST
)
Duel
.
Release
(
e
:
GetHandler
(),
REASON_COST
)
end
end
function
c56673112
.
opfilter
(
c
,
e
,
tp
)
function
c56673112
.
opfilter
(
c
,
e
,
tp
,
ft
)
return
(
c
:
IsAbleToHand
()
or
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
))
and
c
:
IsCode
(
64788463
,
25652259
,
90876561
)
return
(
c
:
IsAbleToHand
()
or
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
ft
>
0
)
and
c
:
IsCode
(
64788463
,
25652259
,
90876561
)
end
end
function
c56673112
.
opcheck
(
g
,
e
,
tp
,
spcheck
)
function
c56673112
.
opcheck
(
g
,
e
,
tp
,
ft
)
return
g
:
GetClassCount
(
Card
.
GetCode
)
==
2
if
g
:
GetClassCount
(
Card
.
GetCode
)
<
2
then
return
false
end
and
(
g
:
FilterCount
(
Card
.
IsAbleToHand
,
nil
)
==
2
or
g
:
FilterCount
(
Card
.
IsCanBeSpecialSummoned
,
nil
,
e
,
0
,
tp
,
false
,
false
)
==
2
)
local
thct
=
g
:
FilterCount
(
Card
.
IsAbleToHand
,
nil
)
local
spct
=
g
:
FilterCount
(
Card
.
IsCanBeSpecialSummoned
,
nil
,
e
,
0
,
tp
,
false
,
false
)
return
thct
+
math.min
(
spct
,
ft
)
>=
2
end
end
function
c56673112
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c56673112
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
if
chk
==
0
then
local
spcheck
=
Duel
.
GetMZoneCount
(
tp
,
e
:
GetHandler
())
>
1
and
not
Duel
.
IsPlayerAffectedByEffect
(
tp
,
59822133
)
local
ft
=
Duel
.
GetMZoneCount
(
tp
,
e
:
GetHandler
())
local
g
=
Duel
.
GetMatchingGroup
(
c56673112
.
opfilter
,
tp
,
LOCATION_DECK
,
0
,
nil
,
e
,
tp
)
if
ft
<
0
then
ft
=
0
end
return
g
:
CheckSubGroup
(
c56673112
.
opcheck
,
2
,
2
,
e
,
tp
,
spcheck
)
if
ft
>
0
and
Duel
.
IsPlayerAffectedByEffect
(
tp
,
59822133
)
then
ft
=
1
end
local
g
=
Duel
.
GetMatchingGroup
(
c56673112
.
opfilter
,
tp
,
LOCATION_DECK
,
0
,
nil
,
e
,
tp
,
ft
)
return
g
:
CheckSubGroup
(
c56673112
.
opcheck
,
2
,
2
,
e
,
tp
,
ft
)
end
end
end
end
function
c56673112
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c56673112
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
spcheck
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
1
and
not
Duel
.
IsPlayerAffectedByEffect
(
tp
,
59822133
)
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
local
g
=
Duel
.
GetMatchingGroup
(
c56673112
.
opfilter
,
tp
,
LOCATION_DECK
,
0
,
nil
,
e
,
tp
)
if
ft
<
0
then
ft
=
0
end
if
ft
>
0
and
Duel
.
IsPlayerAffectedByEffect
(
tp
,
59822133
)
then
ft
=
1
end
local
g
=
Duel
.
GetMatchingGroup
(
c56673112
.
opfilter
,
tp
,
LOCATION_DECK
,
0
,
nil
,
e
,
tp
,
ft
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_OPERATECARD
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_OPERATECARD
)
local
sg
=
g
:
SelectSubGroup
(
tp
,
c56673112
.
opcheck
,
false
,
2
,
2
,
e
,
tp
,
spcheck
)
local
sg
=
g
:
SelectSubGroup
(
tp
,
c56673112
.
opcheck
,
false
,
2
,
2
,
e
,
tp
,
ft
)
if
not
sg
then
return
end
if
not
sg
then
return
end
local
tgc
=
sg
:
FilterCount
(
Card
.
IsAbleToHand
,
nil
)
local
thsg
=
Group
.
CreateGroup
()
local
sgc
=
sg
:
FilterCount
(
Card
.
IsCanBeSpecialSummoned
,
nil
,
e
,
0
,
tp
,
false
,
false
)
local
spsg
=
Group
.
CreateGroup
()
if
tgc
==
2
and
(
sgc
~=
2
or
not
spcheck
or
Duel
.
SelectOption
(
tp
,
1190
,
1152
)
==
0
)
then
local
thct
=
sg
:
FilterCount
(
Card
.
IsAbleToHand
,
nil
)
Duel
.
SendtoHand
(
sg
,
nil
,
REASON_EFFECT
)
local
spct
=
sg
:
FilterCount
(
Card
.
IsCanBeSpecialSummoned
,
nil
,
e
,
0
,
tp
,
false
,
false
)
Duel
.
ConfirmCards
(
1
-
tp
,
sg
)
if
thct
==
0
then
spsg
=
sg
elseif
spct
==
0
or
ft
==
0
then
thsg
=
sg
else
else
Duel
.
SpecialSummon
(
sg
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
if
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
56673112
,
1
))
or
ft
<
2
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
thsg
=
sg
:
FilterSelect
(
tp
,
Card
.
IsAbleToHand
,
1
,
thct
,
nil
)
spsg
=
sg
-
thsg
else
spsg
=
sg
end
end
if
#
thsg
>
0
then
Duel
.
SendtoHand
(
thsg
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
thsg
)
end
if
#
spsg
>
0
then
Duel
.
SpecialSummon
(
spsg
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
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