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
2
Merge Requests
2
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
ae99bb67
Commit
ae99bb67
authored
Jun 19, 2025
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rename
parent
209c6457
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
8 deletions
+8
-8
c60268386.lua
c60268386.lua
+1
-1
c81096431.lua
c81096431.lua
+1
-1
constant.lua
constant.lua
+1
-1
procedure.lua
procedure.lua
+5
-5
No files found.
c60268386.lua
View file @
ae99bb67
...
...
@@ -17,7 +17,7 @@ function s.initial_effect(c)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e2
:
SetCode
(
EFFECT_
TREAT_AS_2
_XMATERIAL
)
e2
:
SetCode
(
EFFECT_
DOUBLE
_XMATERIAL
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetTarget
(
s
.
sxyzfilter
)
e2
:
SetValue
(
id
)
...
...
c81096431.lua
View file @
ae99bb67
...
...
@@ -18,7 +18,7 @@ function s.initial_effect(c)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e2
:
SetCode
(
EFFECT_
TREAT_AS_2
_XMATERIAL
)
e2
:
SetCode
(
EFFECT_
DOUBLE
_XMATERIAL
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetTarget
(
s
.
sxyzfilter
)
e2
:
SetValue
(
id
)
...
...
constant.lua
View file @
ae99bb67
...
...
@@ -609,7 +609,7 @@ EFFECT_REPLACE_DAMAGE =371 --伤害由特定行动代替
EFFECT_XYZ_MIN_COUNT
=
372
--只能用在X只以上的超量召唤
EFFECT_SYNCHRO_LEVEL_EX
=
373
--支持使用没有等级的怪兽作为同调素材
EFFECT_RITUAL_LEVEL_EX
=
374
--支持使用没有等级的怪兽作为仪式素材
EFFECT_
TREAT_AS_2_XMATERIAL
=
375
--需3只以上作素材的超量怪兽时可以作为2只数量
EFFECT_
DOUBLE_XMATERIAL
=
375
--召唤需3只以上作素材的超量怪兽时可以作为2只数量的素材
EFFECT_FLAG_EFFECT
=
0x20000000
--标记类效果,即RegisterFlagEffect()创建的效果
--下面是诱发效果的诱发事件、时点 (如果是TYPE_SINGLE则自己发生以下事件后触发,如果TYPE_FIELD则场上任何卡发生以下事件都触发)
...
...
procedure.lua
View file @
ae99bb67
...
...
@@ -479,7 +479,7 @@ function Auxiliary.Xyz2XMaterialFilter(c,xyzc,lv,f)
end
function
Auxiliary
.
Xyz2XMaterialEffectFilter
(
c
,
xyzc
,
lv
,
f
,
tp
,
checked
)
if
not
checked
and
not
Auxiliary
.
Xyz2XMaterialFilter
(
c
,
xyzc
,
lv
,
f
)
then
return
false
end
local
e
=
c
:
IsHasEffect
(
EFFECT_
TREAT_AS_2
_XMATERIAL
,
tp
)
local
e
=
c
:
IsHasEffect
(
EFFECT_
DOUBLE
_XMATERIAL
,
tp
)
if
not
e
then
return
false
end
local
tg
=
e
:
GetTarget
()
if
tg
and
not
tg
(
e
,
xyzc
)
then
return
false
end
...
...
@@ -496,7 +496,7 @@ function Auxiliary.Xyz2XMaterialGoal(g,tp,xyzc,minc)
local
ct2
=
0
local
limit_table
=
{}
for
c
in
Auxiliary
.
Next
(
g
)
do
local
le
=
c
:
IsHasEffect
(
EFFECT_
TREAT_AS_2
_XMATERIAL
,
tp
)
local
le
=
c
:
IsHasEffect
(
EFFECT_
DOUBLE
_XMATERIAL
,
tp
)
if
le
and
not
limit_table
[
le
:
GetValue
()]
then
-- not fully implemented: assuming Hard once per turn effects
local
tg
=
le
:
GetTarget
()
if
not
tg
or
tg
(
le
,
xyzc
)
then
...
...
@@ -626,14 +626,14 @@ function Auxiliary.Xyz2XMaterialOperation(tp,mg,xyzc,minct,maxct)
g
=
g
:
Select
(
tp
,
1
,
1
,
nil
)
end
local
tc
=
g
:
GetFirst
()
local
te
=
tc
:
IsHasEffect
(
EFFECT_
TREAT_AS_2
_XMATERIAL
,
tp
)
local
te
=
tc
:
IsHasEffect
(
EFFECT_
DOUBLE
_XMATERIAL
,
tp
)
Duel
.
Hint
(
HINT_CARD
,
0
,
tc
:
GetCode
())
te
:
UseCountLimit
(
tp
)
sg
:
RemoveCard
(
tc
)
minct
=
minct
-
2
end
end
---Xyz monster, any condition
---Xyz monster, any condition
(level free)
---@param c Card
---@param f function|nil
---@param gf function|nil
...
...
@@ -655,7 +655,7 @@ function Auxiliary.AddXyzProcedureLevelFree(c,f,gf,minc,maxc,alterf,alterdesc,al
e1
:
SetValue
(
SUMMON_TYPE_XYZ
)
c
:
RegisterEffect
(
e1
)
end
--
Xyz Summon(level free)
--
not fully implemented: EFFECT_DOUBLE_XMATERIAL is not supported
function
Auxiliary
.
XyzLevelFreeFilter
(
c
,
xyzc
,
f
)
return
(
not
c
:
IsOnField
()
or
c
:
IsFaceup
())
and
c
:
IsCanBeXyzMaterial
(
xyzc
)
and
(
not
f
or
f
(
c
,
xyzc
))
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