Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
no81cards
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
Huangnan
no81cards
Commits
754920d3
Commit
754920d3
authored
Jun 27, 2023
by
Nemo Ma
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
7bbdebf5
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
64 additions
and
15 deletions
+64
-15
expansions/script/c11451551.lua
expansions/script/c11451551.lua
+2
-1
expansions/script/c29038040.lua
expansions/script/c29038040.lua
+51
-1
expansions/script/c29065578.lua
expansions/script/c29065578.lua
+2
-6
expansions/script/c67200272.lua
expansions/script/c67200272.lua
+9
-7
No files found.
expansions/script/c11451551.lua
View file @
754920d3
...
...
@@ -34,7 +34,7 @@ function cm.eqlimit(e,c)
return
e
:
GetOwner
()
==
c
end
function
cm
.
equipfd
(
c
,
tp
,
tc
)
if
tc
:
IsPosition
(
POS_FACEUP
)
then
Duel
.
MoveToField
(
tc
,
tp
,
tp
,
LOCATION_SZONE
,
POS_FACEDOWN
,
false
)
return
true
end
if
tc
:
IsPosition
(
POS_FACEUP
)
then
return
Duel
.
MoveToField
(
tc
,
tp
,
tp
,
LOCATION_SZONE
,
POS_FACEDOWN
,
false
)
end
if
not
Duel
.
Equip
(
tp
,
tc
,
c
,
false
)
then
return
false
end
--Add Equip limit
tc
:
RegisterFlagEffect
(
m
,
RESET_EVENT
+
RESETS_STANDARD
,
0
,
0
)
...
...
@@ -93,6 +93,7 @@ function cm.spop(e,tp,eg,ep,ev,re,r,rp)
local
c
=
e
:
GetHandler
()
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
if
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
>
0
and
e
:
IsHasCategory
(
CATEGORY_HANDES
)
then
Duel
.
BreakEffect
()
Duel
.
DiscardHand
(
tp
,
nil
,
1
,
1
,
REASON_EFFECT
+
REASON_DISCARD
)
end
end
\ No newline at end of file
expansions/script/c29038040.lua
View file @
754920d3
...
...
@@ -12,6 +12,19 @@ function c29038040.initial_effect(c)
e3
:
SetTarget
(
c29038040
.
sptg
)
e3
:
SetOperation
(
c29038040
.
spop
)
c
:
RegisterEffect
(
e3
)
--atk
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetCategory
(
CATEGORY_DESTROY
)
e2
:
SetType
(
EFFECT_TYPE_QUICK_O
)
e2
:
SetCode
(
EVENT_FREE_CHAIN
)
e2
:
SetProperty
(
EFFECT_FLAG_DAMAGE_STEP
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetHintTiming
(
TIMING_DAMAGE_STEP
)
e2
:
SetCountLimit
(
1
,
29038041
)
e2
:
SetCondition
(
c29038040
.
atkcon
)
e2
:
SetTarget
(
c29038040
.
atktg
)
e2
:
SetOperation
(
c29038040
.
atkop
)
c
:
RegisterEffect
(
e2
)
end
function
c29038040
.
filter
(
c
,
e
,
tp
)
return
(
c
:
IsCode
(
c
,
29065500
,
29065502
)
or
aux
.
IsCodeListed
(
c
,
29065500
)
or
aux
.
IsCodeListed
(
c
,
29065502
))
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
...
...
@@ -29,4 +42,41 @@ function c29038040.spop(e,tp,eg,ep,ev,re,r,rp)
if
tc
then
Duel
.
SpecialSummon
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
end
\ No newline at end of file
end
function
c29038040
.
atkcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetCurrentPhase
()
>=
PHASE_BATTLE_START
and
Duel
.
GetCurrentPhase
()
<=
PHASE_BATTLE
end
function
c29038040
.
atkfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsCode
(
29065578
)
end
function
c29038040
.
atktg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c29038040
.
atkfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
end
function
c29038040
.
atkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FACEUP
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c29038040
.
atkfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
Duel
.
HintSelection
(
g
)
local
tc
=
g
:
GetFirst
()
if
tc
then
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_SET_ATTACK_FINAL
)
e1
:
SetValue
(
tc
:
GetAttack
()
*
2
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
tc
:
RegisterEffect
(
e1
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e2
:
SetCode
(
EFFECT_CANNOT_ACTIVATE
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetTargetRange
(
0
,
1
)
e2
:
SetValue
(
1
)
e2
:
SetCondition
(
c29038040
.
actcon
)
e2
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
tc
:
RegisterEffect
(
e2
)
end
end
function
c29038040
.
actcon
(
e
)
return
Duel
.
GetAttacker
()
==
e
:
GetHandler
()
or
Duel
.
GetAttackTarget
()
==
e
:
GetHandler
()
end
expansions/script/c29065578.lua
View file @
754920d3
...
...
@@ -19,10 +19,6 @@ function cm.initial_effect(c)
e2
:
SetCondition
(
cm
.
con2
)
e2
:
SetOperation
(
cm
.
op2
)
c
:
RegisterEffect
(
e2
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
)
e3
:
SetCode
(
EFFECT_DIRECT_ATTACK
)
c
:
RegisterEffect
(
e3
)
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetType
(
EFFECT_TYPE_FIELD
)
e4
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
...
...
@@ -44,7 +40,7 @@ end
function
cm
.
con2
(
e
,
c
)
if
c
==
nil
then
return
true
end
local
tp
=
c
:
GetControler
()
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
GetMatchingGroup
(
Card
.
IsFaceup
,
tp
,
LOCATION_MZONE
,
0
,
nil
):
IsExists
(
Card
.
IsCode
,
1
,
nil
,
29056009
)
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
GetMatchingGroup
(
Card
.
IsFaceup
,
tp
,
LOCATION_MZONE
,
0
,
nil
):
IsExists
(
Card
.
IsCode
,
1
,
nil
,
290
38040
,
290
56009
)
and
Duel
.
IsCanRemoveCounter
(
tp
,
1
,
0
,
0x10ae
,
1
,
REASON_COST
)
end
function
cm
.
op2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
)
...
...
@@ -56,5 +52,5 @@ function cm.con4(e)
end
--e5
function
cm
.
con5
(
e
)
return
not
Duel
.
GetMatchingGroup
(
Card
.
IsFaceup
,
e
:
GetHandler
():
GetControler
(),
LOCATION_MZONE
,
0
,
nil
):
IsExists
(
Card
.
IsCode
,
1
,
nil
,
29056009
)
return
not
Duel
.
GetMatchingGroup
(
Card
.
IsFaceup
,
e
:
GetHandler
():
GetControler
(),
LOCATION_MZONE
,
0
,
nil
):
IsExists
(
Card
.
IsCode
,
1
,
nil
,
290
38040
,
290
56009
)
end
\ No newline at end of file
expansions/script/c67200272.lua
View file @
754920d3
...
...
@@ -29,15 +29,15 @@ function c67200272.initial_effect(c)
c
:
RegisterEffect
(
e3
)
end
function
c67200272
.
scfilter1
(
c
,
e
,
tp
)
return
c
:
Is
SetCard
(
0x674
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
return
c
:
Is
Faceup
()
and
c
:
IsSetCard
(
0x674
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
POS_FACEUP_DEFENSE
)
end
function
c67200272
.
sctg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
local
c
=
e
:
GetHandler
()
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_
PZONE
)
and
chkc
:
IsControler
(
tp
)
and
c67200272
.
scfilter1
(
chkc
,
e
,
tp
,
c
)
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_
SZONE
)
and
chkc
:
IsControler
(
tp
)
and
c67200272
.
scfilter1
(
chkc
,
e
,
tp
)
end
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingTarget
(
c67200272
.
scfilter1
,
tp
,
LOCATION_SZONE
,
0
,
1
,
nil
,
e
,
tp
,
c
)
end
and
Duel
.
IsExistingTarget
(
c67200272
.
scfilter1
,
tp
,
LOCATION_SZONE
,
0
,
1
,
nil
,
e
,
tp
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c67200272
.
scfilter1
,
tp
,
LOCATION_SZONE
,
0
,
1
,
1
,
nil
,
e
,
tp
,
c
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c67200272
.
scfilter1
,
tp
,
LOCATION_SZONE
,
0
,
1
,
1
,
nil
,
e
,
tp
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
g
,
1
,
0
,
0
)
end
function
c67200272
.
scop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
@@ -47,13 +47,15 @@ function c67200272.scop(e,tp,eg,ep,ev,re,r,rp)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_DISABLE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
tc
:
RegisterEffect
(
e1
)
tc
:
RegisterEffect
(
e1
,
true
)
local
e2
=
e1
:
Clone
()
e2
:
SetCode
(
EFFECT_DISABLE_EFFECT
)
tc
:
RegisterEffect
(
e2
)
e2
:
SetValue
(
RESET_TURN_SET
)
tc
:
RegisterEffect
(
e2
,
true
)
end
if
Duel
.
SpecialSummonComplete
()
==
0
then
return
end
Duel
.
SpecialSummonComplete
()
end
--
function
c67200272
.
spfilter
(
c
,
e
,
tp
)
...
...
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