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
be01ab1a
Commit
be01ab1a
authored
Oct 22, 2021
by
Nemo Ma
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
c926d656
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
44 additions
and
35 deletions
+44
-35
expansions/script/c114514.lua
expansions/script/c114514.lua
+1
-1
expansions/script/c33710903.lua
expansions/script/c33710903.lua
+19
-8
expansions/script/c82224002.lua
expansions/script/c82224002.lua
+24
-26
No files found.
expansions/script/c114514.lua
View file @
be01ab1a
...
@@ -23,7 +23,7 @@ function c114514.initial_effect(c)
...
@@ -23,7 +23,7 @@ function c114514.initial_effect(c)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
end
end
function
c114514
.
rfilter
(
c
,
tp
)
function
c114514
.
rfilter
(
c
,
tp
)
return
c
:
IsControler
(
tp
)
or
c
:
IsFaceup
(
)
return
c
:
IsControler
(
tp
)
and
c
:
IsFaceup
()
and
not
c
:
IsCode
(
114514
)
end
end
function
c114514
.
sumfilter
(
c
)
function
c114514
.
sumfilter
(
c
)
return
c
:
GetAttack
()
return
c
:
GetAttack
()
...
...
expansions/script/c33710903.lua
View file @
be01ab1a
...
@@ -10,18 +10,28 @@ function c33710903.initial_effect(c)
...
@@ -10,18 +10,28 @@ function c33710903.initial_effect(c)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
if
not
c33710903
.
global_check
then
if
not
c33710903
.
global_check
then
c33710903
.
global_check
=
true
c33710903
.
global_check
=
true
Count_Time_For_This_Effect
=
{
0
,
0
,
0
,
0
}
local
ge1
=
Effect
.
CreateEffect
(
c
)
local
ge1
=
Effect
.
CreateEffect
(
c
)
ge1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
ge1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
ge1
:
SetCode
(
EVENT_CHAINING
)
ge1
:
SetCode
(
EVENT_CHAINING
)
ge1
:
SetOperation
(
c33710903
.
checkop
)
ge1
:
SetOperation
(
c33710903
.
checkop
)
Duel
.
RegisterEffect
(
ge1
,
0
)
Duel
.
RegisterEffect
(
ge1
,
0
)
local
ge2
=
Effect
.
CreateEffect
(
c
)
ge2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
ge2
:
SetCode
(
EVENT_TURN_END
)
ge2
:
SetOperation
(
c33710903
.
checkop2
)
Duel
.
RegisterEffect
(
ge2
,
0
)
end
end
end
end
function
c33710903
.
checkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c33710903
.
checkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
re
:
GetHandler
()
Count_Time_For_This_Effect
[
re
:
GetHandlerPlayer
()
+
3
]
=
Count_Time_For_This_Effect
[
re
:
GetHandlerPlayer
()
+
3
]
+
1
if
tc
then
end
Duel
.
RegisterFlagEffect
(
re
:
GetHandler
():
GetControler
(),
16133710903
+
Duel
.
GetTurnCount
(),
RESET_PHASE
+
PHASE_END
,
0
,
2
)
function
c33710903
.
checkop2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
end
Debug
.
Message
(
0
)
Count_Time_For_This_Effect
[
1
]
=
Count_Time_For_This_Effect
[
3
]
Count_Time_For_This_Effect
[
2
]
=
Count_Time_For_This_Effect
[
4
]
Count_Time_For_This_Effect
[
3
]
=
0
Count_Time_For_This_Effect
[
4
]
=
0
end
end
function
c33710903
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c33710903
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_DECK
,
0
)
>
0
end
if
chk
==
0
then
return
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_DECK
,
0
)
>
0
end
...
@@ -59,12 +69,13 @@ function c33710903.actlimit(e,te,tp)
...
@@ -59,12 +69,13 @@ function c33710903.actlimit(e,te,tp)
and
g
:
GetFirst
():
IsFaceup
()
and
g
:
GetFirst
():
IsFaceup
()
end
end
function
c33710903
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c33710903
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsRelateToEffect
(
e
)
end
if
chk
==
0
then
return
true
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DAMAGE
,
0
,
0
,
1
-
tp
,
Duel
.
GetFlagEffect
(
1
-
tp
,
16133710903
+
Duel
.
GetTurnCount
()
-
1
)
*
500
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DAMAGE
,
0
,
0
,
1
-
tp
,
Count_Time_For_This_Effect
[
2
-
tp
]
*
500
)
end
end
function
c33710903
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c33710903
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
c
:
IsRelateToEffect
(
e
)
then
Duel
.
Damage
(
1
-
tp
,
Count_Time_For_This_Effect
[
2
-
tp
]
*
500
,
REASON_EFFECT
)
Duel
.
Damage
(
1
-
tp
,
Duel
.
GetFlagEffect
(
1
-
tp
,
16133710903
+
Duel
.
GetTurnCount
()
-
1
)
*
500
,
REASON_EFFECT
)
if
c
:
IsRelateToEffect
(
e
)
then
Duel
.
ShuffleHand
(
tp
)
end
end
end
end
\ No newline at end of file
expansions/script/c82224002.lua
View file @
be01ab1a
function
c82224002
.
initial_effect
(
c
)
function
c82224002
.
initial_effect
(
c
)
--Activate
--Activate
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetHintTiming
(
TIMINGS_CHECK_MONSTER
+
TIMING_SSET
)
e1
:
SetHintTiming
(
TIMINGS_CHECK_MONSTER
+
TIMING_SSET
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_CANNOT_NEGATE
+
EFFECT_FLAG_CANNOT_INACTIVATE
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
+
EFFECT_FLAG_CANNOT_NEGATE
+
EFFECT_FLAG_CANNOT_INACTIVATE
)
e1
:
SetCondition
(
c82224002
.
con
)
e1
:
SetCondition
(
c82224002
.
con
)
e1
:
SetOperation
(
c82224002
.
activate
)
e1
:
SetOperation
(
c82224002
.
activate
)
e1
:
SetCost
(
c82224002
.
cost
)
e1
:
SetCost
(
c82224002
.
cost
)
e1
:
SetCountLimit
(
1
,
82224002
+
EFFECT_COUNT_CODE_OATH
)
e1
:
SetCountLimit
(
1
,
82224002
+
EFFECT_COUNT_CODE_OATH
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
--act in hand
--act in hand
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetCode
(
EFFECT_TRAP_ACT_IN_HAND
)
e2
:
SetCode
(
EFFECT_TRAP_ACT_IN_HAND
)
e2
:
SetCondition
(
c82224002
.
handcon
)
e2
:
SetCondition
(
c82224002
.
handcon
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
end
function
c82224002
.
handcon
(
e
)
function
c82224002
.
handcon
(
e
)
return
Duel
.
GetFieldGroupCount
(
e
:
GetHandlerPlayer
(),
LOCATION_ONFIELD
,
LOCATION_ONFIELD
)
>=
5
return
Duel
.
GetFieldGroupCount
(
e
:
GetHandlerPlayer
(),
LOCATION_ONFIELD
,
LOCATION_ONFIELD
)
>=
5
end
end
function
c82224002
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c82224002
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
if
chk
==
0
then
return
true
end
Duel
.
PayLPCost
(
tp
,
math.floor
(
Duel
.
GetLP
(
tp
)
/
2
))
Duel
.
PayLPCost
(
tp
,
math.floor
(
Duel
.
GetLP
(
tp
)
/
2
))
end
end
function
c82224002
.
con
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c82224002
.
con
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetCurrentPhase
()
==
PHASE_MAIN1
or
Duel
.
GetCurrentPhase
()
==
PHASE_BATTLE_START
or
Duel
.
GetCurrentPhase
()
==
PHASE_BATTLE
or
Duel
.
GetCurrentPhase
()
==
PHASE_BATTLE_STEP
or
Duel
.
GetCurrentPhase
()
==
PHASE_MAIN2
return
Duel
.
GetCurrentPhase
()
==
PHASE_MAIN1
or
Duel
.
GetCurrentPhase
()
==
PHASE_BATTLE_START
or
Duel
.
GetCurrentPhase
()
==
PHASE_BATTLE
or
Duel
.
GetCurrentPhase
()
==
PHASE_BATTLE_STEP
or
Duel
.
GetCurrentPhase
()
==
PHASE_MAIN2
end
end
function
c82224002
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c82224002
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
p
=
Duel
.
GetTurnPlayer
()
local
p
=
Duel
.
GetTurnPlayer
()
Duel
.
Hint
(
HINT_SELECTMSG
,
p
,
aux
.
Stringid
(
82224002
,
0
))
Duel
.
Hint
(
HINT_SELECTMSG
,
p
,
aux
.
Stringid
(
82224002
,
0
))
if
Duel
.
GetCurrentPhase
()
==
PHASE_MAIN1
then
if
Duel
.
GetCurrentPhase
()
==
PHASE_MAIN1
then
Duel
.
SkipPhase
(
p
,
PHASE_MAIN1
,
RESET_PHASE
+
PHASE_
END
,
1
)
Duel
.
SkipPhase
(
p
,
PHASE_MAIN1
,
RESET_PHASE
+
PHASE_
BATTLE
,
1
)
else
else
if
Duel
.
GetCurrentPhase
()
==
PHASE_BATTLE_START
or
Duel
.
GetCurrentPhase
()
==
PHASE_BATTLE
or
Duel
.
GetCurrentPhase
()
==
PHASE_BATTLE_STEP
then
if
Duel
.
GetCurrentPhase
()
==
PHASE_BATTLE_START
or
Duel
.
GetCurrentPhase
()
==
PHASE_BATTLE
or
Duel
.
GetCurrentPhase
()
==
PHASE_BATTLE_STEP
then
Duel
.
SkipPhase
(
p
,
PHASE_BATTLE
,
RESET_PHASE
+
PHASE_
END
,
1
)
Duel
.
SkipPhase
(
p
,
PHASE_BATTLE
,
RESET_PHASE
+
PHASE_
MAIN2
,
1
)
else
else
Duel
.
SkipPhase
(
p
,
PHASE_MAIN2
,
RESET_PHASE
+
PHASE_END
,
1
)
Duel
.
SkipPhase
(
p
,
PHASE_MAIN2
,
RESET_PHASE
+
PHASE_END
,
1
)
end
end
end
end
end
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