Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
P
pre-release-database-cdb
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
MyCard
pre-release-database-cdb
Commits
47317c12
Commit
47317c12
authored
Jan 09, 2024
by
fallenstardust
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix LEDE-JP011\057 script
parent
8e88fdd1
Pipeline
#24842
passed with stages
in 59 seconds
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
33 additions
and
5 deletions
+33
-5
script/c101204011.lua
script/c101204011.lua
+31
-3
script/c101204057.lua
script/c101204057.lua
+2
-2
No files found.
script/c101204011.lua
View file @
47317c12
...
@@ -26,8 +26,21 @@ end
...
@@ -26,8 +26,21 @@ end
function
s
.
mvcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
s
.
mvcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
ac
=
c
:
GetBattleTarget
()
local
ac
=
c
:
GetBattleTarget
()
local
ft1
=
0
local
ft2
=
0
if
c
:
GetOwner
()
==
tp
then
ft1
=
ft1
+
1
else
ft2
=
ft2
+
1
end
if
ac
:
GetOwner
()
==
tp
then
ft1
=
ft1
+
1
else
ft2
=
ft2
+
1
end
e
:
SetLabelObject
(
ac
)
e
:
SetLabelObject
(
ac
)
return
ac
and
ac
:
IsFaceup
()
and
ac
:
IsControler
(
1
-
tp
)
return
ac
and
ac
:
IsControler
(
1
-
tp
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
>=
ft1
and
Duel
.
GetLocationCount
(
1
-
tp
,
LOCATION_SZONE
)
>=
ft2
end
end
function
s
.
mvtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
s
.
mvtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
if
chk
==
0
then
return
true
end
...
@@ -35,7 +48,22 @@ end
...
@@ -35,7 +48,22 @@ end
function
s
.
mvop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
s
.
mvop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
ac
=
e
:
GetLabelObject
()
local
ac
=
e
:
GetLabelObject
()
if
ac
:
IsRelateToBattle
()
and
not
ac
:
IsImmuneToEffect
(
e
)
if
not
ac
:
IsRelateToBattle
()
or
not
c
:
IsRelateToEffect
(
e
)
then
return
false
end
local
ft1
=
0
local
ft2
=
0
if
c
:
GetOwner
()
==
tp
then
ft1
=
ft1
+
1
else
ft2
=
ft2
+
1
end
if
ac
:
GetOwner
()
==
tp
then
ft1
=
ft1
+
1
else
ft2
=
ft2
+
1
end
if
not
(
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
>=
ft1
)
or
not
(
Duel
.
GetLocationCount
(
1
-
tp
,
LOCATION_SZONE
)
>=
ft2
)
then
return
false
end
if
ac
:
IsType
(
TYPE_MONSTER
)
and
not
ac
:
IsImmuneToEffect
(
e
)
and
Duel
.
MoveToField
(
ac
,
tp
,
ac
:
GetOwner
(),
LOCATION_SZONE
,
POS_FACEUP
,
true
)
then
and
Duel
.
MoveToField
(
ac
,
tp
,
ac
:
GetOwner
(),
LOCATION_SZONE
,
POS_FACEUP
,
true
)
then
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetCode
(
EFFECT_CHANGE_TYPE
)
e1
:
SetCode
(
EFFECT_CHANGE_TYPE
)
...
@@ -45,7 +73,7 @@ function s.mvop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -45,7 +73,7 @@ function s.mvop(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetValue
(
TYPE_SPELL
+
TYPE_CONTINUOUS
)
e1
:
SetValue
(
TYPE_SPELL
+
TYPE_CONTINUOUS
)
ac
:
RegisterEffect
(
e1
)
ac
:
RegisterEffect
(
e1
)
end
end
if
c
:
IsRelateToEffect
(
e
)
and
not
c
:
IsImmuneToEffect
(
e
)
if
not
c
:
IsImmuneToEffect
(
e
)
and
Duel
.
MoveToField
(
c
,
tp
,
c
:
GetOwner
(),
LOCATION_SZONE
,
POS_FACEUP
,
true
)
then
and
Duel
.
MoveToField
(
c
,
tp
,
c
:
GetOwner
(),
LOCATION_SZONE
,
POS_FACEUP
,
true
)
then
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetCode
(
EFFECT_CHANGE_TYPE
)
e1
:
SetCode
(
EFFECT_CHANGE_TYPE
)
...
...
script/c101204057.lua
View file @
47317c12
...
@@ -17,7 +17,7 @@ function s.initial_effect(c)
...
@@ -17,7 +17,7 @@ function s.initial_effect(c)
e2
:
SetCategory
(
CATEGORY_TODECK
)
e2
:
SetCategory
(
CATEGORY_TODECK
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e2
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e2
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e2
:
SetCode
(
EVENT_
TO_GRAVE
)
e2
:
SetCode
(
EVENT_
DESTROYED
)
e2
:
SetCondition
(
s
.
tdcon
)
e2
:
SetCondition
(
s
.
tdcon
)
e2
:
SetTarget
(
s
.
tdtg
)
e2
:
SetTarget
(
s
.
tdtg
)
e2
:
SetOperation
(
s
.
tdop
)
e2
:
SetOperation
(
s
.
tdop
)
...
@@ -51,7 +51,7 @@ end
...
@@ -51,7 +51,7 @@ end
function
s
.
tdcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
s
.
tdcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
return
c
:
IsReason
(
REASON_EFFECT
)
and
rp
==
1
-
tp
and
c
:
IsPreviousControler
(
tp
)
return
c
:
IsReason
(
REASON_EFFECT
)
and
rp
==
1
-
tp
and
c
:
IsPreviousControler
(
tp
)
and
c
:
IsPreviousLocation
(
LOCATION_ONFIELD
)
and
c
:
IsPreviousPosition
(
POS_FACEDOWN
)
and
c
:
IsPreviousLocation
(
LOCATION_ONFIELD
)
and
c
:
IsPreviousPosition
(
POS_FACEDOWN
)
and
re
:
IsActivated
()
end
end
function
s
.
tdtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
s
.
tdtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToDeck
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToDeck
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
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