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
7271d5af
Commit
7271d5af
authored
Nov 29, 2024
by
Nanahira
Committed by
GitHub
Nov 29, 2024
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #13 from mycard/develop-8888
Develop 8888
parents
8af8a510
43e52612
Changes
13
Show whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
37 additions
and
17 deletions
+37
-17
c11819473.lua
c11819473.lua
+1
-1
c12686296.lua
c12686296.lua
+1
-1
c3428069.lua
c3428069.lua
+1
-0
c39761418.lua
c39761418.lua
+2
-2
c47292920.lua
c47292920.lua
+2
-2
c50915474.lua
c50915474.lua
+1
-1
c59514116.lua
c59514116.lua
+7
-3
c71344451.lua
c71344451.lua
+1
-0
c76728962.lua
c76728962.lua
+1
-1
c87532344.lua
c87532344.lua
+1
-1
c93078761.lua
c93078761.lua
+1
-1
constant.lua
constant.lua
+3
-0
utility.lua
utility.lua
+15
-4
No files found.
c11819473.lua
View file @
7271d5af
...
@@ -25,7 +25,7 @@ function c11819473.initial_effect(c)
...
@@ -25,7 +25,7 @@ function c11819473.initial_effect(c)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
end
function
c11819473
.
thfilter1
(
c
)
function
c11819473
.
thfilter1
(
c
)
return
not
c
:
IsCode
(
11819473
)
and
c
:
IsEffectProperty
(
aux
.
Effect
CategoryFilter
(
CATEGORY
_COIN
))
and
c
:
IsAbleToHand
()
return
not
c
:
IsCode
(
11819473
)
and
c
:
IsEffectProperty
(
aux
.
Effect
PropertyFilter
(
EFFECT_FLAG
_COIN
))
and
c
:
IsAbleToHand
()
end
end
function
c11819473
.
thfilter2
(
c
,
p
)
function
c11819473
.
thfilter2
(
c
,
p
)
return
c
:
IsAbleToHand
(
p
)
return
c
:
IsAbleToHand
(
p
)
...
...
c12686296.lua
View file @
7271d5af
...
@@ -47,7 +47,7 @@ function s.spfilter(c,e,tp)
...
@@ -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
)
return
c
:
IsSetCard
(
0x5
)
and
c
:
IsLevel
(
10
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
true
,
false
)
end
end
function
s
.
thfilter
(
c
)
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
end
function
s
.
coinop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
s
.
coinop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
...
...
c3428069.lua
View file @
7271d5af
...
@@ -53,6 +53,7 @@ function c3428069.eqop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -53,6 +53,7 @@ function c3428069.eqop(e,tp,eg,ep,ev,re,r,rp)
if
not
Duel
.
Equip
(
tp
,
tc
,
c
,
false
)
then
return
end
if
not
Duel
.
Equip
(
tp
,
tc
,
c
,
false
)
then
return
end
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_OWNER_RELATE
)
e1
:
SetCode
(
EFFECT_EQUIP_LIMIT
)
e1
:
SetCode
(
EFFECT_EQUIP_LIMIT
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
e1
:
SetValue
(
c3428069
.
eqlimit
)
e1
:
SetValue
(
c3428069
.
eqlimit
)
...
...
c39761418.lua
View file @
7271d5af
...
@@ -31,7 +31,7 @@ function s.initial_effect(c)
...
@@ -31,7 +31,7 @@ function s.initial_effect(c)
end
end
s
.
toss_coin
=
true
s
.
toss_coin
=
true
function
s
.
cfilter
(
c
)
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
end
function
s
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
s
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
IsExistingMatchingCard
(
s
.
cfilter
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
nil
)
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)
...
@@ -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
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_COIN
,
nil
,
0
,
tp
,
1
)
end
end
function
s
.
setfilter
(
c
)
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
end
function
s
.
desfilter
(
c
)
function
s
.
desfilter
(
c
)
return
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
c
:
GetSequence
()
<
5
return
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
and
c
:
GetSequence
()
<
5
...
...
c47292920.lua
View file @
7271d5af
...
@@ -13,7 +13,7 @@ function c47292920.initial_effect(c)
...
@@ -13,7 +13,7 @@ function c47292920.initial_effect(c)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
function
c47292920
.
cfilter
(
c
)
function
c47292920
.
cfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsEffectProperty
(
aux
.
Effect
CategoryFilter
(
CATEGORY
_DICE
))
return
c
:
IsFaceup
()
and
c
:
IsEffectProperty
(
aux
.
Effect
PropertyFilter
(
EFFECT_FLAG
_DICE
))
end
end
function
c47292920
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c47292920
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
IsExistingMatchingCard
(
c47292920
.
cfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
nil
)
return
Duel
.
IsExistingMatchingCard
(
c47292920
.
cfilter
,
tp
,
LOCATION_ONFIELD
,
0
,
1
,
nil
)
...
@@ -28,7 +28,7 @@ function c47292920.cost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -28,7 +28,7 @@ function c47292920.cost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
Release
(
g
,
REASON_COST
)
Duel
.
Release
(
g
,
REASON_COST
)
end
end
function
c47292920
.
spfilter
(
c
,
e
,
tp
)
function
c47292920
.
spfilter
(
c
,
e
,
tp
)
return
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsEffectProperty
(
aux
.
MonsterEffect
CategoryFilter
(
CATEGORY
_DICE
))
return
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsEffectProperty
(
aux
.
MonsterEffect
PropertyFilter
(
EFFECT_FLAG
_DICE
))
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
end
function
c47292920
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c47292920
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
...
...
c50915474.lua
View file @
7271d5af
...
@@ -28,7 +28,7 @@ function s.initial_effect(c)
...
@@ -28,7 +28,7 @@ function s.initial_effect(c)
end
end
s
.
toss_coin
=
true
s
.
toss_coin
=
true
function
s
.
thfilter
(
c
)
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
end
function
s
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
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
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
s
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
...
...
c59514116.lua
View file @
7271d5af
...
@@ -4,7 +4,7 @@ function c59514116.initial_effect(c)
...
@@ -4,7 +4,7 @@ function c59514116.initial_effect(c)
aux
.
AddCodeList
(
c
,
46986414
,
38033121
)
aux
.
AddCodeList
(
c
,
46986414
,
38033121
)
--activate
--activate
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
+
CATEGORY_FUSION_SUMMON
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetHintTiming
(
0
,
TIMINGS_CHECK_MONSTER
+
TIMING_END_PHASE
)
e1
:
SetHintTiming
(
0
,
TIMINGS_CHECK_MONSTER
+
TIMING_END_PHASE
)
...
@@ -57,11 +57,15 @@ function c59514116.target(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -57,11 +57,15 @@ function c59514116.target(e,tp,eg,ep,ev,re,r,rp,chk)
end
end
e
:
SetLabel
(
s
)
e
:
SetLabel
(
s
)
if
s
==
0
then
if
s
==
0
then
if
e
:
IsCostChecked
()
then
e
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
+
CATEGORY_FUSION_SUMMON
)
e
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
+
CATEGORY_FUSION_SUMMON
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_EXTRA
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_EXTRA
)
end
end
if
s
==
1
then
if
s
==
1
then
if
e
:
IsCostChecked
()
then
e
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_HAND
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_HAND
)
end
end
end
end
...
...
c71344451.lua
View file @
7271d5af
...
@@ -51,6 +51,7 @@ function c71344451.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -51,6 +51,7 @@ function c71344451.activate(e,tp,eg,ep,ev,re,r,rp)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
local
dg
=
Duel
.
SelectMatchingCard
(
tp
,
aux
.
NecroValleyFilter
(
Card
.
IsAbleToDeck
),
tp
,
LOCATION_GRAVE
,
0
,
ct2
,
ct2
,
nil
)
local
dg
=
Duel
.
SelectMatchingCard
(
tp
,
aux
.
NecroValleyFilter
(
Card
.
IsAbleToDeck
),
tp
,
LOCATION_GRAVE
,
0
,
ct2
,
ct2
,
nil
)
if
dg
:
GetCount
()
>
0
then
if
dg
:
GetCount
()
>
0
then
Duel
.
HintSelection
(
dg
)
Duel
.
SendtoDeck
(
dg
,
nil
,
SEQ_DECKSHUFFLE
,
REASON_EFFECT
)
Duel
.
SendtoDeck
(
dg
,
nil
,
SEQ_DECKSHUFFLE
,
REASON_EFFECT
)
end
end
end
end
...
...
c76728962.lua
View file @
7271d5af
...
@@ -88,7 +88,7 @@ function c76728962.desop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -88,7 +88,7 @@ function c76728962.desop(e,tp,eg,ep,ev,re,r,rp)
end
end
end
end
function
c76728962
.
thfilter
(
c
)
function
c76728962
.
thfilter
(
c
)
return
c
:
IsEffectProperty
(
aux
.
Effect
CategoryFilter
(
CATEGORY
_COIN
))
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsLevelBelow
(
7
)
and
c
:
IsAbleToHand
()
return
c
:
IsEffectProperty
(
aux
.
Effect
PropertyFilter
(
EFFECT_FLAG
_COIN
))
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsLevelBelow
(
7
)
and
c
:
IsAbleToHand
()
end
end
function
c76728962
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c76728962
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c76728962
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c76728962
.
thfilter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
...
...
c87532344.lua
View file @
7271d5af
...
@@ -23,7 +23,7 @@ function s.initial_effect(c)
...
@@ -23,7 +23,7 @@ function s.initial_effect(c)
--special summon
--special summon
local
e3
=
Effect
.
CreateEffect
(
c
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetDescription
(
aux
.
Stringid
(
id
,
1
))
e3
:
SetDescription
(
aux
.
Stringid
(
id
,
1
))
e3
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e3
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
|
CATEGORY_FUSION_SUMMON
)
e3
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e3
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e3
:
SetCode
(
EVENT_FREE_CHAIN
)
e3
:
SetCode
(
EVENT_FREE_CHAIN
)
e3
:
SetRange
(
LOCATION_SZONE
)
e3
:
SetRange
(
LOCATION_SZONE
)
...
...
c93078761.lua
View file @
7271d5af
...
@@ -12,7 +12,7 @@ function c93078761.initial_effect(c)
...
@@ -12,7 +12,7 @@ function c93078761.initial_effect(c)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
function
c93078761
.
filter
(
c
)
function
c93078761
.
filter
(
c
)
return
c
:
IsEffectProperty
(
aux
.
Effect
CategoryFilter
(
CATEGORY
_DICE
))
and
c
:
IsAbleToHand
()
return
c
:
IsEffectProperty
(
aux
.
Effect
PropertyFilter
(
EFFECT_FLAG
_DICE
))
and
c
:
IsAbleToHand
()
end
end
function
c93078761
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c93078761
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c93078761
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c93078761
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
...
...
constant.lua
View file @
7271d5af
...
@@ -336,6 +336,9 @@ EFFECT_FLAG_LIMIT_ZONE =0x10000000 --限制魔法·陷阱卡发动时可以放
...
@@ -336,6 +336,9 @@ EFFECT_FLAG_LIMIT_ZONE =0x10000000 --限制魔法·陷阱卡发动时可以放
EFFECT_FLAG_ACTIVATE_CONDITION
=
0x20000000
--诱发效果即将发动时检查条件(手卡诱发之外的无此标记的诱发效果为触发事件时检查)
EFFECT_FLAG_ACTIVATE_CONDITION
=
0x20000000
--诱发效果即将发动时检查条件(手卡诱发之外的无此标记的诱发效果为触发事件时检查)
EFFECT_FLAG_CVAL_CHECK
=
0x40000000
--N/A
EFFECT_FLAG_CVAL_CHECK
=
0x40000000
--N/A
EFFECT_FLAG_IMMEDIATELY_APPLY
=
0x80000000
--卡在发动时效果就立即适用
EFFECT_FLAG_IMMEDIATELY_APPLY
=
0x80000000
--卡在发动时效果就立即适用
EFFECT_FLAG_COIN
=
0x100000000
--
EFFECT_FLAG_DICE
=
0x200000000
--
EFFECT_FLAG_FUSION_SUMMON
=
0x400000000
--
EFFECT_FLAG2_REPEAT_UPDATE
=
0x0001
--最后计算的攻击力上升
EFFECT_FLAG2_REPEAT_UPDATE
=
0x0001
--最后计算的攻击力上升
EFFECT_FLAG2_COF
=
0x0002
--通常魔法卡在MP1以外发动(邪恶的仪式的特殊处理)
EFFECT_FLAG2_COF
=
0x0002
--通常魔法卡在MP1以外发动(邪恶的仪式的特殊处理)
...
...
utility.lua
View file @
7271d5af
...
@@ -1931,13 +1931,24 @@ end
...
@@ -1931,13 +1931,24 @@ end
---@param category integer
---@param category integer
---@return function
---@return function
function
Auxiliary
.
EffectCategoryFilter
(
category
)
function
Auxiliary
.
EffectCategoryFilter
(
category
)
return
aux
.
FilterBoolFunction
(
Effect
.
IsHasCategory
,
category
)
---@param e Effect
return
function
(
e
)
return
e
:
IsHasCategory
(
category
)
end
end
end
---@param category integer
---@param flag integer
---@return function
function
Auxiliary
.
EffectPropertyFilter
(
flag
)
---@param e Effect
return
function
(
e
)
return
e
:
IsHasProperty
(
flag
)
end
end
---@param flag integer
---@return function
---@return function
function
Auxiliary
.
MonsterEffect
CategoryFilter
(
category
)
function
Auxiliary
.
MonsterEffect
PropertyFilter
(
flag
)
---@param e Effect
---@param e Effect
return
function
(
e
)
return
function
(
e
)
return
e
:
IsHas
Category
(
category
)
and
not
e
:
IsHasRange
(
LOCATION_PZONE
)
return
e
:
IsHas
Property
(
flag
)
and
not
e
:
IsHasRange
(
LOCATION_PZONE
)
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