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
Nemo Ma
no81cards
Commits
04bf00f8
Commit
04bf00f8
authored
May 10, 2025
by
POLYMER
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
367c5955
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
64 additions
and
54 deletions
+64
-54
expansions/script/c33703032.lua
expansions/script/c33703032.lua
+56
-50
expansions/script/c44401001.lua
expansions/script/c44401001.lua
+8
-4
No files found.
expansions/script/c33703032.lua
View file @
04bf00f8
--向空挥拳!
--向空挥拳!
function
c33703032
.
initial_effect
(
c
)
function
c33703032
.
initial_effect
(
c
)
--这张卡在自己场上有且仅有1只怪兽存在的场合可以从手卡发动。
--Activate
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCategory
(
CATEGORY_DISABLE
+
CATEGORY_ATKCHANGE
+
CATEGORY_DEFCHANGE
)
e1
:
SetCode
(
EFFECT_TRAP_ACT_IN_HAND
)
e1
:
SetCondition
(
c33703032
.
handcon
)
c
:
RegisterEffect
(
e1
)
--自己场上只有这张卡和1只怪兽的场合才能发动。自己场上的怪兽的攻击力·守备力变成5000。自己没有手卡的场合,自己场上的怪兽直到下个对方的结束阶段时不受效果影响。是自己回合的场合,这个回合结束。
local
e2
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCategory
(
CATEGORY_ATKCHANGE
+
CATEGORY_DEFCHANGE
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetCode
(
EVENT_CHAINING
)
e1
:
SetCondition
(
c33703032
.
condition
)
e1
:
SetTarget
(
c33703032
.
target
)
e1
:
SetTarget
(
c33703032
.
target
)
e1
:
SetOperation
(
c33703032
.
activate
)
e1
:
SetOperation
(
c33703032
.
activate
)
c
:
RegisterEffect
(
e1
)
--act in hand
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetCode
(
EFFECT_TRAP_ACT_IN_HAND
)
e2
:
SetCondition
(
c33703032
.
handcon
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
--这张卡在自己场上有且仅有1只怪兽存在的场合可以从手卡发动。
function
c33703032
.
handcon
(
e
)
return
Duel
.
GetFieldGroupCount
(
e
:
GetHandlerPlayer
(),
LOCATION_MZONE
,
0
)
==
1
and
Duel
.
GetFieldGroupCount
(
e
:
GetHandlerPlayer
(),
LOCATION_ONFIELD
,
0
)
==
1
end
end
function
c33703032
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c33703032
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetFieldGroupCount
(
e
:
GetHandlerPlayer
(),
LOCATION_ONFIELD
,
0
)
==
2
and
Duel
.
GetFieldGroupCount
(
e
:
GetHandlerPlayer
(),
LOCATION_MZONE
,
0
)
==
1
and
Duel
.
GetFieldGroupCount
(
e
:
GetHandlerPlayer
(),
LOCATION_SZONE
,
0
)
==
1
if
not
(
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_MZONE
,
0
)
==
1
and
not
Duel
.
IsExistingMatchingCard
(
aux
.
TRUE
,
tp
,
LOCATION_ONFIELD
,
0
,
2
,
e
:
GetHandler
()))
then
return
false
end
for
i
=
1
,
ev
do
if
Duel
.
IsChainDisablable
(
i
)
then
return
true
end
end
return
false
end
end
--自己场上只有这张卡和1只怪兽的场合才能发动。自己场上的怪兽的攻击力·守备力变成5000。
function
c33703032
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c33703032
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
local
dg
=
Group
.
CreateGroup
()
for
i
=
1
,
ev
do
for
i
=
1
,
ev
do
Duel
.
NegateActivation
(
i
)
local
te
=
Duel
.
GetChainInfo
(
i
,
CHAININFO_TRIGGERING_EFFECT
)
if
Duel
.
IsChainNegatable
(
i
)
then
dg
:
AddCard
(
te
:
GetHandler
())
end
end
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
Card
.
IsFaceup
(),
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DISABLE
,
dg
,
dg
:
GetCount
(),
0
,
0
)
end
end
function
c33703032
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c33703032
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsFaceup
(),
tp
,
LOCATION_MZONE
,
0
,
nil
)
for
i
=
1
,
ev
do
Duel
.
NegateEffect
(
i
)
end
local
tc
=
g
:
GetFirst
(
)
local
sg
=
Duel
.
GetMatchingGroup
(
Card
.
IsFaceup
,
tp
,
LOCATION_MZONE
,
0
,
nil
)
while
tc
do
for
sc
in
aux
.
Next
(
sg
)
do
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_SET_ATTACK
)
e1
:
SetCode
(
EFFECT_SET_BASE_ATTACK_FINAL
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
e1
:
SetValue
(
5000
)
e1
:
SetValue
(
5000
)
tc
:
RegisterEffect
(
e1
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
local
e2
=
Effect
.
CreateEffect
(
c
)
sc
:
RegisterEffect
(
e1
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
local
e2
=
e1
:
Clone
()
e2
:
SetCode
(
EFFECT_SET_DEFENSE
)
e2
:
SetCode
(
EFFECT_SET_BASE_DEFENSE_FINAL
)
e2
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
sc
:
RegisterEffect
(
e2
)
e2
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
end
e2
:
SetValue
(
5000
)
if
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_HAND
,
0
)
==
0
then
tc
:
RegisterEffect
(
e2
)
local
tg
=
Duel
.
GetMatchingGroup
(
aux
.
TRUE
,
tp
,
LOCATION_MZONE
,
0
,
nil
)
--自己没有手卡的场合,自己场上的怪兽直到下个对方的结束阶段时不受效果影响。
for
tc
in
aux
.
Next
(
tg
)
do
if
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_HAND
,
0
)
==
0
then
local
e3
=
Effect
.
CreateEffect
(
c
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
)
e3
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
+
EFFECT_FLAG_CANNOT_DISABLE
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetCode
(
EFFECT_IMMUNE_EFFECT
)
e3
:
SetCode
(
EFFECT_IMMUNE_EFFECT
)
e3
:
SetProperty
(
EFFECT_FLAG_SET_AVAILABLE
)
e3
:
SetValue
(
c33703032
.
efilter
)
e3
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
+
RESET_OPPO_TURN
)
e3
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
+
RESET_OPPO_TURN
)
e3
:
SetValue
(
c33703032
.
value
)
tc
:
RegisterEffect
(
e3
)
tc
:
RegisterEffect
(
e3
)
end
end
tc
=
g
:
GetNext
()
end
end
--是自己回合的场合,这个回合结束。
if
Duel
.
GetTurnPlayer
()
==
tp
then
if
Duel
.
GetTurnPlayer
()
==
1
-
tp
then
Duel
.
SkipPhase
(
tp
,
PHASE_DRAW
,
RESET_PHASE
+
PHASE_END
,
1
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
Duel
.
SkipPhase
(
tp
,
PHASE_STANDBY
,
RESET_PHASE
+
PHASE_END
,
1
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
Duel
.
SkipPhase
(
tp
,
PHASE_MAIN1
,
RESET_PHASE
+
PHASE_END
,
1
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
Duel
.
SkipPhase
(
tp
,
PHASE_BATTLE
,
RESET_PHASE
+
PHASE_END
,
1
,
1
)
e1
:
SetTargetRange
(
1
,
0
)
Duel
.
SkipPhase
(
tp
,
PHASE_MAIN2
,
RESET_PHASE
+
PHASE_END
,
1
)
e1
:
SetCode
(
EFFECT_SKIP_TURN
)
local
e4
=
Effect
.
CreateEffect
(
c
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
+
RESET_SELF_TURN
,
2
)
e4
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
Duel
.
RegisterEffect
(
e1
,
tp
)
e4
:
SetType
(
EFFECT_TYPE_FIELD
)
e4
:
SetCode
(
EFFECT_CANNOT_BP
)
e4
:
SetTargetRange
(
1
,
0
)
e4
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
Duel
.
RegisterEffect
(
e4
,
tp
)
end
end
end
end
function
c33703032
.
value
(
e
,
te
)
function
c33703032
.
efilter
(
e
,
re
)
return
te
:
GetOwner
()
~=
e
:
GetOwner
()
return
e
:
GetHandler
()
~=
re
:
GetOwner
()
end
end
\ No newline at end of file
function
c33703032
.
handcon
(
e
)
return
Duel
.
GetFieldGroupCount
(
e
:
GetHandlerPlayer
(),
LOCATION_MZONE
,
0
)
==
1
and
not
Duel
.
IsExistingMatchingCard
(
aux
.
TRUE
,
e
:
GetHandlerPlayer
(),
LOCATION_ONFIELD
,
0
,
2
,
nil
)
end
expansions/script/c44401001.lua
View file @
04bf00f8
...
@@ -49,10 +49,14 @@ function c44401001.rmop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -49,10 +49,14 @@ function c44401001.rmop(e,tp,eg,ep,ev,re,r,rp)
and
Duel
.
IsExistingMatchingCard
(
c44401001
.
thfilter
,
tp
,
LOCATION_REMOVED
,
0
,
1
,
nil
)
and
Duel
.
IsExistingMatchingCard
(
c44401001
.
thfilter
,
tp
,
LOCATION_REMOVED
,
0
,
1
,
nil
)
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
44401001
,
0
))
then
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
44401001
,
0
))
then
--to hand
--to hand
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
tg
=
Duel
.
GetMatchingGroup
(
c44401001
.
thfilter
,
tp
,
LOCATION_REMOVED
,
0
,
nil
)
local
tg
=
Duel
.
SelectMatchingCard
(
tp
,
c44401001
.
thfilter
,
tp
,
LOCATION_REMOVED
,
0
,
1
,
1
,
nil
)
local
tc
=
tg
:
GetFirst
()
Duel
.
SendtoHand
(
tg
,
nil
,
REASON_EFFECT
)
if
#
tg
>
1
then
Duel
.
ConfirmCards
(
1
-
tp
,
tg
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
tc
=
tg
:
Select
(
tp
,
1
,
1
,
nil
):
GetFirst
()
end
Duel
.
SendtoHand
(
tc
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
tc
)
end
end
end
end
function
c44401001
.
runcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c44401001
.
runcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
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