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
zengshangxing
pre-release-database-cdb
Commits
597d4fe7
Commit
597d4fe7
authored
Jan 13, 2024
by
fallenstardust
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix LEDE-JP020\069\078\079 scripts
parent
585b41e4
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
11 deletions
+12
-11
script/c101204020.lua
script/c101204020.lua
+5
-5
script/c101204069.lua
script/c101204069.lua
+1
-1
script/c101204078.lua
script/c101204078.lua
+4
-3
script/c101204079.lua
script/c101204079.lua
+2
-2
No files found.
script/c101204020.lua
View file @
597d4fe7
...
...
@@ -37,7 +37,8 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp)
end
function
s
.
cfilter
(
c
,
tp
)
return
c
:
IsSetCard
(
0x192
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToRemoveAsCost
()
and
c
:
IsLevelAbove
(
1
)
and
c
:
IsFaceupEx
()
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
id
+
o
,
0
,
TYPES_TOKEN_MONSTER
,
0
,
0
,
c
:
GetLevel
(),
RACE_MACHINE
,
ATTRIBUTE_EARTH
)
and
Duel
.
GetMZoneCount
(
tp
,
c
)
>
0
and
Duel
.
GetMZoneCount
(
tp
,
c
)
>
0
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
id
+
o
,
0
,
TYPES_TOKEN_MONSTER
,
0
,
0
,
c
:
GetLevel
(),
RACE_MACHINE
,
ATTRIBUTE_EARTH
)
end
function
s
.
tokencost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
e
:
SetLabel
(
100
)
...
...
@@ -52,7 +53,7 @@ function s.tokentg(e,tp,eg,ep,ev,re,r,rp,chk)
if
chk
==
0
then
local
res
=
e
:
GetLabel
()
==
100
e
:
SetLabel
(
0
)
return
res
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
return
res
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOKEN
,
nil
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
0
,
0
)
...
...
@@ -61,7 +62,7 @@ function s.tokenop(e,tp,eg,ep,ev,re,r,rp)
local
c
=
e
:
GetHandler
()
local
lv
=
e
:
GetLabel
()
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
id
+
o
,
0
,
TYPES_TOKEN_MONSTER
,
0
,
0
,
lv
,
RACE_
MACHINE
,
ATTRIBUTE_EARTH
)
then
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
id
+
o
,
0
,
TYPES_TOKEN_MONSTER
,
0
,
0
,
lv
,
RACE_
CYBERSE
,
ATTRIBUTE_FIRE
)
then
local
tk
=
Duel
.
CreateToken
(
tp
,
id
+
o
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
...
...
@@ -74,9 +75,8 @@ function s.tokenop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
SpecialSummonComplete
()
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetProperty
(
EFFECT_FLAG_S
ET_AVAILABLE
+
EFFECT_FLAG_S
INGLE_RANGE
)
e2
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e2
:
SetCode
(
EFFECT_CANNOT_BE_SYNCHRO_MATERIAL
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetValue
(
s
.
synlimit
)
e2
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
c
:
RegisterEffect
(
e2
)
...
...
script/c101204069.lua
View file @
597d4fe7
...
...
@@ -83,7 +83,7 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
tc
:
RegisterEffect
(
e5
)
end
local
rg
=
Group
.
FromCards
(
tc
,
sc
)
if
sc
:
GetCode
()
==
tc
:
GetCode
(
)
and
rg
:
IsExists
(
Card
.
IsAbleToRemove
,
2
,
nil
,
POS_FACEDOWN
)
if
(
sc
:
IsCode
(
tc
:
GetCode
())
or
tc
:
IsCode
(
sc
:
GetCode
())
)
and
rg
:
IsExists
(
Card
.
IsAbleToRemove
,
2
,
nil
,
POS_FACEDOWN
)
and
rg
:
IsExists
(
Card
.
IsLocation
,
2
,
nil
,
LOCATION_MZONE
)
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
id
,
1
))
then
Duel
.
BreakEffect
()
...
...
script/c101204078.lua
View file @
597d4fe7
...
...
@@ -11,9 +11,10 @@ function s.initial_effect(c)
c
:
RegisterEffect
(
e1
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e2
:
SetProperty
(
EFFECT_FLAG_D
AMAGE_STEP
+
EFFECT_FLAG_D
ELAY
)
e2
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e2
:
SetCode
(
EVENT_LEAVE_FIELD
)
e2
:
SetRange
(
LOCATION_GRAVE
)
e2
:
SetCountLimit
(
1
,
id
)
e2
:
SetCondition
(
s
.
spcon
)
e2
:
SetCost
(
aux
.
bfgcost
)
e2
:
SetTarget
(
s
.
sptg
)
...
...
@@ -47,7 +48,7 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
end
end
function
s
.
spcfilter
(
c
,
tp
)
return
c
:
IsRace
(
RACE_ILLUSION
)
and
c
:
IsPreviousControler
(
tp
)
return
bit
.
band
(
c
:
GetPreviousRaceOnField
(),
RACE_ILLUSION
)
~=
0
and
c
:
IsPreviousControler
(
tp
)
and
c
:
IsPreviousPosition
(
POS_FACEUP
)
and
c
:
GetReasonPlayer
()
==
1
-
tp
and
c
:
IsReason
(
REASON_EFFECT
)
and
c
:
IsPreviousLocation
(
LOCATION_MZONE
)
end
...
...
@@ -60,7 +61,7 @@ end
function
s
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
at
=
Duel
.
GetAttacker
()
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingMatchingCard
(
s
.
filter
,
tp
,
LOCATION_
DECK
,
0
,
1
,
nil
,
e
,
tp
)
end
and
Duel
.
IsExistingMatchingCard
(
s
.
filter
,
tp
,
LOCATION_
HAND
+
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_HAND
+
LOCATION_GRAVE
)
end
function
s
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
script/c101204079.lua
View file @
597d4fe7
...
...
@@ -53,13 +53,13 @@ function s.atklimit(e,c)
end
function
s
.
damcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
return
c
:
GetSummonType
()
==
SUMMON_TYPE_SPECIAL
+
SUMMON_VALUE_SELF
and
c
:
IsReason
(
REASON_BATTLE
)
and
c
:
IsPreviousControler
(
tp
)
and
c
==
Duel
.
GetAttackTarget
()
and
Duel
.
GetAttacker
():
IsControler
(
1
-
tp
)
return
c
:
GetSummonType
()
==
SUMMON_TYPE_SPECIAL
+
SUMMON_VALUE_SELF
and
c
:
IsReason
(
REASON_BATTLE
)
and
c
:
IsPreviousControler
(
tp
)
and
c
==
Duel
.
GetAttackTarget
()
and
((
Duel
.
GetAttacker
():
IsControler
(
1
-
tp
)
and
c
:
IsLocation
(
LOCATION_ONFIELD
))
or
Duel
.
GetAttacker
():
IsPreviousControler
(
1
-
tp
)
)
end
function
s
.
damtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
local
bc
=
e
:
GetHandler
():
GetBattleTarget
()
local
dam
=
0
if
bc
:
IsLocation
(
LOCATION_
ONFIELD
)
then
if
bc
:
IsLocation
(
LOCATION_
MZONE
)
then
dam
=
bc
:
GetBaseAttack
()
else
dam
=
bc
:
GetTextAttack
()
...
...
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