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
12ef99bd
Commit
12ef99bd
authored
Sep 26, 2024
by
wind2009
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'upstream/master' into master
parents
11e3ff77
c105173b
Changes
18
Show whitespace changes
Inline
Side-by-side
Showing
18 changed files
with
26 additions
and
27 deletions
+26
-27
c30241314.lua
c30241314.lua
+1
-1
c31849106.lua
c31849106.lua
+2
-5
c45675980.lua
c45675980.lua
+0
-1
c46502744.lua
c46502744.lua
+1
-1
c48626373.lua
c48626373.lua
+1
-1
c53701259.lua
c53701259.lua
+2
-3
c58481572.lua
c58481572.lua
+1
-1
c58844135.lua
c58844135.lua
+1
-1
c61528025.lua
c61528025.lua
+1
-1
c69072185.lua
c69072185.lua
+1
-1
c79606837.lua
c79606837.lua
+1
-1
c81674782.lua
c81674782.lua
+2
-5
c83705073.lua
c83705073.lua
+0
-1
c91800273.lua
c91800273.lua
+1
-1
c93449450.lua
c93449450.lua
+1
-1
c94853057.lua
c94853057.lua
+1
-1
constant.lua
constant.lua
+5
-1
utility.lua
utility.lua
+4
-0
No files found.
c30241314.lua
View file @
12ef99bd
...
...
@@ -14,7 +14,7 @@ function c30241314.initial_effect(c)
e2
:
SetProperty
(
EFFECT_FLAG_SET_AVAILABLE
+
EFFECT_FLAG_IGNORE_RANGE
+
EFFECT_FLAG_IGNORE_IMMUNE
)
e2
:
SetRange
(
LOCATION_SZONE
)
e2
:
SetCode
(
EFFECT_TO_GRAVE_REDIRECT
)
e2
:
SetTargetRange
(
0xff
,
0xff
)
e2
:
SetTargetRange
(
LOCATION_DECK
,
LOCATION_DECK
)
e2
:
SetValue
(
LOCATION_REMOVED
)
c
:
RegisterEffect
(
e2
)
end
...
...
c31849106.lua
View file @
12ef99bd
...
...
@@ -12,12 +12,9 @@ function c31849106.activate(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetProperty
(
EFFECT_FLAG_SET_AVAILABLE
+
EFFECT_FLAG_IGNORE_RANGE
+
EFFECT_FLAG_IGNORE_IMMUNE
)
e1
:
SetCode
(
EFFECT_TO_GRAVE_REDIRECT
)
e1
:
SetTarget
(
c31849106
.
rmt
arget
)
e1
:
SetTargetRange
(
0xff
,
0xff
)
e1
:
SetTarget
(
aux
.
DimensionalFissureT
arget
)
e1
:
SetTargetRange
(
LOCATION_DECK
,
LOCATION_DECK
)
e1
:
SetValue
(
LOCATION_REMOVED
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
Duel
.
RegisterEffect
(
e1
,
tp
)
end
function
c31849106
.
rmtarget
(
e
,
c
)
return
not
c
:
IsLocation
(
0x80
)
and
not
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
end
c45675980.lua
View file @
12ef99bd
...
...
@@ -23,7 +23,6 @@ function c45675980.initial_effect(c)
e2
:
SetProperty
(
EFFECT_FLAG_SET_AVAILABLE
+
EFFECT_FLAG_IGNORE_RANGE
+
EFFECT_FLAG_IGNORE_IMMUNE
)
e2
:
SetRange
(
LOCATION_SZONE
)
e2
:
SetCode
(
EFFECT_TO_GRAVE_REDIRECT
)
e2
:
SetTargetRange
(
0xfe
,
0xfe
)
e2
:
SetValue
(
LOCATION_REMOVED
)
e2
:
SetCondition
(
c45675980
.
rmcon
)
e2
:
SetTarget
(
c45675980
.
rmtg
)
...
...
c46502744.lua
View file @
12ef99bd
...
...
@@ -17,7 +17,7 @@ function c46502744.initial_effect(c)
e2
:
SetProperty
(
EFFECT_FLAG_SET_AVAILABLE
+
EFFECT_FLAG_IGNORE_RANGE
+
EFFECT_FLAG_IGNORE_IMMUNE
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetCode
(
EFFECT_TO_GRAVE_REDIRECT
)
e2
:
SetTargetRange
(
0xff
,
0xff
)
e2
:
SetTargetRange
(
LOCATION_DECK
,
LOCATION_DECK
)
e2
:
SetCondition
(
c46502744
.
remcon
)
e2
:
SetValue
(
LOCATION_REMOVED
)
c
:
RegisterEffect
(
e2
)
...
...
c48626373.lua
View file @
12ef99bd
...
...
@@ -10,7 +10,7 @@ function s.initial_effect(c)
e1
:
SetProperty
(
EFFECT_FLAG_SET_AVAILABLE
+
EFFECT_FLAG_IGNORE_RANGE
+
EFFECT_FLAG_IGNORE_IMMUNE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCode
(
EFFECT_TO_GRAVE_REDIRECT
)
e1
:
SetTargetRange
(
0xff
,
0xff
)
e1
:
SetTargetRange
(
LOCATION_DECK
,
LOCATION_DECK
)
e1
:
SetValue
(
LOCATION_REMOVED
)
c
:
RegisterEffect
(
e1
)
--material
...
...
c53701259.lua
View file @
12ef99bd
...
...
@@ -58,7 +58,7 @@ function c53701259.initial_effect(c)
e7
:
SetCode
(
EFFECT_TO_GRAVE_REDIRECT
)
e7
:
SetRange
(
LOCATION_SZONE
)
e7
:
SetValue
(
LOCATION_REMOVED
)
e7
:
SetTargetRange
(
0
xfe
,
0xff
)
e7
:
SetTargetRange
(
0
,
LOCATION_DECK
)
e7
:
SetTarget
(
c53701259
.
rmtg
)
e7
:
SetCondition
(
c53701259
.
rmcon
)
c
:
RegisterEffect
(
e7
)
...
...
@@ -136,8 +136,7 @@ function c53701259.disop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
NegateEffect
(
ev
)
end
function
c53701259
.
rmtg
(
e
,
c
)
return
c
:
GetOwner
()
~=
e
:
GetHandlerPlayer
()
and
not
c
:
IsLocation
(
LOCATION_OVERLAY
)
and
not
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
return
c
:
GetOwner
()
~=
e
:
GetHandlerPlayer
()
and
aux
.
DimensionalFissureTarget
(
e
,
c
)
end
function
c53701259
.
rmcon
(
e
)
local
tp
=
e
:
GetHandlerPlayer
()
...
...
c58481572.lua
View file @
12ef99bd
...
...
@@ -14,7 +14,7 @@ function c58481572.initial_effect(c)
e2
:
SetProperty
(
EFFECT_FLAG_SET_AVAILABLE
+
EFFECT_FLAG_IGNORE_RANGE
+
EFFECT_FLAG_IGNORE_IMMUNE
)
e2
:
SetCode
(
EFFECT_TO_GRAVE_REDIRECT
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetTargetRange
(
0
xfe
,
0xff
)
e2
:
SetTargetRange
(
0
,
LOCATION_DECK
)
e2
:
SetValue
(
LOCATION_REMOVED
)
e2
:
SetTarget
(
c58481572
.
rmtg
)
c
:
RegisterEffect
(
e2
)
...
...
c58844135.lua
View file @
12ef99bd
...
...
@@ -7,7 +7,7 @@ function c58844135.initial_effect(c)
e1
:
SetCode
(
EFFECT_TO_GRAVE_REDIRECT
)
e1
:
SetProperty
(
EFFECT_FLAG_SET_AVAILABLE
+
EFFECT_FLAG_IGNORE_RANGE
+
EFFECT_FLAG_IGNORE_IMMUNE
)
e1
:
SetRange
(
LOCATION_PZONE
)
e1
:
SetTargetRange
(
0xff
,
0xff
)
e1
:
SetTargetRange
(
LOCATION_DECK
,
LOCATION_DECK
)
e1
:
SetTarget
(
c58844135
.
rmtarget
)
e1
:
SetValue
(
LOCATION_REMOVED
)
c
:
RegisterEffect
(
e1
)
...
...
c61528025.lua
View file @
12ef99bd
...
...
@@ -6,7 +6,7 @@ function c61528025.initial_effect(c)
e1
:
SetProperty
(
EFFECT_FLAG_SET_AVAILABLE
+
EFFECT_FLAG_IGNORE_RANGE
+
EFFECT_FLAG_IGNORE_IMMUNE
)
e1
:
SetCode
(
EFFECT_TO_GRAVE_REDIRECT
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetTargetRange
(
0xff
,
0xff
)
e1
:
SetTargetRange
(
LOCATION_DECK
,
LOCATION_DECK
)
e1
:
SetValue
(
LOCATION_REMOVED
)
c
:
RegisterEffect
(
e1
)
end
c69072185.lua
View file @
12ef99bd
...
...
@@ -29,7 +29,7 @@ function c69072185.initial_effect(c)
e3
:
SetRange
(
LOCATION_PZONE
)
e3
:
SetCondition
(
c69072185
.
rmcon
)
e3
:
SetTarget
(
c69072185
.
rmtarget
)
e3
:
SetTargetRange
(
0xff
,
0xff
)
e3
:
SetTargetRange
(
LOCATION_DECK
,
LOCATION_DECK
)
e3
:
SetValue
(
LOCATION_REMOVED
)
c
:
RegisterEffect
(
e3
)
end
...
...
c79606837.lua
View file @
12ef99bd
...
...
@@ -6,8 +6,8 @@ function c79606837.initial_effect(c)
--remove
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetProperty
(
EFFECT_FLAG_SET_AVAILABLE
)
e1
:
SetCode
(
EFFECT_TO_GRAVE_REDIRECT
)
e1
:
SetProperty
(
EFFECT_FLAG_SET_AVAILABLE
+
EFFECT_FLAG_IGNORE_IMMUNE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetTarget
(
c79606837
.
rmtarget
)
e1
:
SetTargetRange
(
LOCATION_HAND
+
LOCATION_DECK
,
LOCATION_HAND
+
LOCATION_DECK
)
...
...
c81674782.lua
View file @
12ef99bd
...
...
@@ -11,8 +11,8 @@ function c81674782.initial_effect(c)
e2
:
SetProperty
(
EFFECT_FLAG_SET_AVAILABLE
+
EFFECT_FLAG_IGNORE_RANGE
+
EFFECT_FLAG_IGNORE_IMMUNE
)
e2
:
SetCode
(
EFFECT_TO_GRAVE_REDIRECT
)
e2
:
SetRange
(
LOCATION_SZONE
)
e2
:
SetTarget
(
c81674782
.
rmt
arget
)
e2
:
SetTargetRange
(
0xff
,
0xff
)
e2
:
SetTarget
(
aux
.
DimensionalFissureT
arget
)
e2
:
SetTargetRange
(
LOCATION_DECK
,
LOCATION_DECK
)
e2
:
SetValue
(
LOCATION_REMOVED
)
c
:
RegisterEffect
(
e2
)
--
...
...
@@ -25,9 +25,6 @@ function c81674782.initial_effect(c)
e3
:
SetTarget
(
c81674782
.
checktg
)
c
:
RegisterEffect
(
e3
)
end
function
c81674782
.
rmtarget
(
e
,
c
)
return
c
:
GetOriginalType
()
&
TYPE_MONSTER
>
0
and
not
c
:
IsLocation
(
0x80
)
and
not
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
end
function
c81674782
.
checktg
(
e
,
c
)
return
not
c
:
IsPublic
()
end
c83705073.lua
View file @
12ef99bd
...
...
@@ -15,7 +15,6 @@ function c83705073.initial_effect(c)
e2
:
SetProperty
(
EFFECT_FLAG_SET_AVAILABLE
+
EFFECT_FLAG_IGNORE_RANGE
+
EFFECT_FLAG_IGNORE_IMMUNE
)
e2
:
SetCode
(
EFFECT_TO_GRAVE_REDIRECT
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetTargetRange
(
0xfe
,
0xfe
)
e2
:
SetValue
(
LOCATION_REMOVED
)
e2
:
SetTarget
(
c83705073
.
rmtg
)
c
:
RegisterEffect
(
e2
)
...
...
c91800273.lua
View file @
12ef99bd
...
...
@@ -23,7 +23,7 @@ function c91800273.redop(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetProperty
(
EFFECT_FLAG_SET_AVAILABLE
+
EFFECT_FLAG_IGNORE_RANGE
+
EFFECT_FLAG_IGNORE_IMMUNE
)
e1
:
SetCode
(
EFFECT_TO_GRAVE_REDIRECT
)
e1
:
SetTargetRange
(
0xff
,
0xff
)
e1
:
SetTargetRange
(
LOCATION_DECK
,
LOCATION_DECK
)
e1
:
SetValue
(
LOCATION_REMOVED
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
,
2
)
Duel
.
RegisterEffect
(
e1
,
tp
)
...
...
c93449450.lua
View file @
12ef99bd
...
...
@@ -35,7 +35,7 @@ function c93449450.initial_effect(c)
e4
:
SetRange
(
LOCATION_MZONE
)
e4
:
SetCondition
(
c93449450
.
excon
)
e4
:
SetTarget
(
c93449450
.
extg
)
e4
:
SetTargetRange
(
0
xfe
,
0xff
)
e4
:
SetTargetRange
(
0
,
LOCATION_DECK
)
e4
:
SetValue
(
LOCATION_REMOVED
)
c
:
RegisterEffect
(
e4
)
end
...
...
c94853057.lua
View file @
12ef99bd
...
...
@@ -6,7 +6,7 @@ function c94853057.initial_effect(c)
e1
:
SetProperty
(
EFFECT_FLAG_SET_AVAILABLE
+
EFFECT_FLAG_IGNORE_RANGE
+
EFFECT_FLAG_IGNORE_IMMUNE
)
e1
:
SetCode
(
EFFECT_TO_GRAVE_REDIRECT
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetTargetRange
(
0xff
,
0xff
)
e1
:
SetTargetRange
(
LOCATION_DECK
,
LOCATION_DECK
)
e1
:
SetValue
(
LOCATION_REMOVED
)
c
:
RegisterEffect
(
e1
)
end
constant.lua
View file @
12ef99bd
...
...
@@ -304,7 +304,7 @@ EFFECT_TYPE_XMATERIAL =0x1000 --作为超量素材时超量怪兽获得的效
EFFECT_TYPE_GRANT
=
0x2000
--使其他卡片获得效果(天气模样)
EFFECT_TYPE_TARGET
=
0x4000
--影响持续取的对象的效果(基本只用于魔陷)
--========== Flags ========== --效果的特殊性质
EFFECT_FLAG_INITIAL
=
0x0001
--
可以发动的
EFFECT_FLAG_INITIAL
=
0x0001
--
在initial_effect建立的效果
EFFECT_FLAG_FUNC_VALUE
=
0x0002
--此效果的Value属性是函数
EFFECT_FLAG_COUNT_LIMIT
=
0x0004
--发动次数限制
EFFECT_FLAG_FIELD_ONLY
=
0x0008
--此效果是注册给全局环境的
...
...
@@ -869,6 +869,10 @@ DUEL_TAG_MODE =0x20 --双打PP
DUEL_SIMPLE_AI
=
0x40
--AI(用于残局)
DUEL_RETURN_DECK_TOP
=
0x80
--回卡组洗切的卡放到卡组最上方(不洗牌模式下曾经的默认行为)
DUEL_REVEAL_DECK_SEQ
=
0x100
--从卡组选卡显示实际顺序(曾经的默认行为)
--Duel rule (Debug.ReloadFieldBegin)
MASTER_RULE3
=
3
--Master Rule 3 (2014)
NEW_MASTER_RULE
=
4
--New Master Rule (2017)
MASTER_RULE_2020
=
5
--Master Rule 2020
--Activity counter
--global: 1-6 (binary: 5,6)
--custom: 1-5,7 (binary: 1-5)
...
...
utility.lua
View file @
12ef99bd
...
...
@@ -1768,3 +1768,7 @@ function Auxiliary.IsCanBeQuickEffect(c,tp,code)
local
filter
=
Auxiliary
.
quick_effect_filter
[
code
]
return
Duel
.
IsPlayerAffectedByEffect
(
tp
,
code
)
~=
nil
and
filter
~=
nil
and
filter
(
c
)
end
--
function
Auxiliary
.
DimensionalFissureTarget
(
e
,
c
)
return
c
:
GetOriginalType
()
&
TYPE_MONSTER
>
0
and
not
c
:
IsLocation
(
LOCATION_OVERLAY
)
and
not
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
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