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
887d2c52
Commit
887d2c52
authored
Dec 04, 2024
by
salix5
Committed by
GitHub
Dec 04, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use aux.EffectPropertyFilter (#2764)
parent
cd017715
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
c12686296.lua
c12686296.lua
+1
-1
c39761418.lua
c39761418.lua
+2
-2
c50915474.lua
c50915474.lua
+1
-1
No files found.
c12686296.lua
View file @
887d2c52
...
...
@@ -47,7 +47,7 @@ function s.spfilter(c,e,tp)
return
c
:
IsSetCard
(
0x5
)
and
c
:
IsLevel
(
10
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
true
,
false
)
end
function
s
.
thfilter
(
c
)
return
c
:
IsEffectProperty
(
aux
.
Effect
CategoryFilter
(
CATEGORY
_COIN
))
and
c
:
IsAbleToHand
()
return
c
:
IsEffectProperty
(
aux
.
Effect
PropertyFilter
(
EFFECT_FLAG
_COIN
))
and
c
:
IsAbleToHand
()
end
function
s
.
coinop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
...
...
c39761418.lua
View file @
887d2c52
...
...
@@ -31,7 +31,7 @@ function s.initial_effect(c)
end
s
.
toss_coin
=
true
function
s
.
cfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsEffectProperty
(
aux
.
Effect
CategoryFilter
(
CATEGORY
_COIN
))
return
c
:
IsFaceup
()
and
c
:
IsEffectProperty
(
aux
.
Effect
PropertyFilter
(
EFFECT_FLAG
_COIN
))
end
function
s
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
IsExistingMatchingCard
(
s
.
cfilter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
nil
)
...
...
@@ -52,7 +52,7 @@ function s.cointg(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_COIN
,
nil
,
0
,
tp
,
1
)
end
function
s
.
setfilter
(
c
)
return
c
:
IsType
(
TYPE_SPELL
)
and
c
:
IsSSetable
()
and
c
:
IsEffectProperty
(
aux
.
Effect
CategoryFilter
(
CATEGORY
_COIN
))
return
c
:
IsType
(
TYPE_SPELL
)
and
c
:
IsSSetable
()
and
c
:
IsEffectProperty
(
aux
.
Effect
PropertyFilter
(
EFFECT_FLAG
_COIN
))
end
function
s
.
desfilter
(
c
)
return
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
c
:
GetSequence
()
<
5
...
...
c50915474.lua
View file @
887d2c52
...
...
@@ -28,7 +28,7 @@ function s.initial_effect(c)
end
s
.
toss_coin
=
true
function
s
.
thfilter
(
c
)
return
not
c
:
IsCode
(
id
)
and
c
:
IsEffectProperty
(
aux
.
Effect
CategoryFilter
(
CATEGORY
_COIN
))
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToHand
()
return
not
c
:
IsCode
(
id
)
and
c
:
IsEffectProperty
(
aux
.
Effect
PropertyFilter
(
EFFECT_FLAG
_COIN
))
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToHand
()
end
function
s
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
s
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
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