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
4134794c
Commit
4134794c
authored
Mar 27, 2021
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add Auxiliary.AtkEqualsDef
parent
f69a4ce4
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
2 deletions
+8
-2
c46809548.lua
c46809548.lua
+1
-1
c90361289.lua
c90361289.lua
+1
-1
utility.lua
utility.lua
+6
-0
No files found.
c46809548.lua
View file @
4134794c
...
@@ -49,7 +49,7 @@ function c46809548.thcost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -49,7 +49,7 @@ function c46809548.thcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
DiscardHand
(
tp
,
c46809548
.
costfilter
,
1
,
1
,
REASON_COST
+
REASON_DISCARD
,
nil
)
Duel
.
DiscardHand
(
tp
,
c46809548
.
costfilter
,
1
,
1
,
REASON_COST
+
REASON_DISCARD
,
nil
)
end
end
function
c46809548
.
thfilter
(
c
)
function
c46809548
.
thfilter
(
c
)
return
c
:
GetTextAttack
()
>=
0
and
c
:
GetAttack
()
==
c
:
GetDefense
()
and
not
c
:
IsCode
(
46809548
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToHand
()
return
aux
.
AtkEqualsDef
(
c
)
and
not
c
:
IsCode
(
46809548
)
and
c
:
IsAbleToHand
()
end
end
function
c46809548
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c46809548
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c46809548
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c46809548
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
...
...
c90361289.lua
View file @
4134794c
...
@@ -62,7 +62,7 @@ function c90361289.cfilter(c,e,tp)
...
@@ -62,7 +62,7 @@ function c90361289.cfilter(c,e,tp)
return
c
:
IsFaceup
()
and
Duel
.
IsExistingMatchingCard
(
c90361289
.
spfilter
,
tp
,
LOCATION_HAND
+
LOCATION_DECK
,
0
,
1
,
nil
,
e
,
tp
,
c
:
GetAttribute
())
return
c
:
IsFaceup
()
and
Duel
.
IsExistingMatchingCard
(
c90361289
.
spfilter
,
tp
,
LOCATION_HAND
+
LOCATION_DECK
,
0
,
1
,
nil
,
e
,
tp
,
c
:
GetAttribute
())
end
end
function
c90361289
.
spfilter
(
c
,
e
,
tp
,
attr
)
function
c90361289
.
spfilter
(
c
,
e
,
tp
,
attr
)
return
c
:
GetTextAttack
()
>=
0
and
c
:
GetTextAttack
()
==
c
:
GetTextDefense
(
)
and
c
:
IsAttribute
(
attr
)
return
aux
.
AtkEqualsDef
(
c
)
and
c
:
IsAttribute
(
attr
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
end
function
c90361289
.
sptg2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c90361289
.
sptg2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
...
...
utility.lua
View file @
4134794c
...
@@ -2375,6 +2375,12 @@ end
...
@@ -2375,6 +2375,12 @@ end
function
Auxiliary
.
UrsarcticSpSummonLimit
(
e
,
c
)
function
Auxiliary
.
UrsarcticSpSummonLimit
(
e
,
c
)
return
c
:
IsLevel
(
0
)
return
c
:
IsLevel
(
0
)
end
end
--shortcut for Gizmek cards
function
Auxiliary
.
AtkEqualsDef
(
c
)
if
not
c
:
IsType
(
TYPE_MONSTER
)
or
c
:
IsType
(
TYPE_LINK
)
then
return
false
end
if
c
:
GetAttack
()
~=
c
:
GetDefense
()
then
return
false
end
return
c
:
IsLocation
(
LOCATION_MZONE
)
or
c
:
GetTextAttack
()
>=
0
and
c
:
GetTextDefense
()
>=
0
end
--shortcut for self-banish costs
--shortcut for self-banish costs
function
Auxiliary
.
bfgcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
Auxiliary
.
bfgcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToRemoveAsCost
()
end
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToRemoveAsCost
()
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