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
Amiya
pre-release-database-cdb
Commits
bcf8c623
Commit
bcf8c623
authored
Dec 16, 2023
by
fallenstardust
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix 24PR-JP004\005 scripts
parent
021267e8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
script/c100213004.lua
script/c100213004.lua
+4
-4
script/c100213005.lua
script/c100213005.lua
+2
-2
No files found.
script/c100213004.lua
View file @
bcf8c623
...
...
@@ -7,7 +7,7 @@ function c100213004.initial_effect(c)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
+
EFFECT_FLAG_DAMAGE_STEP
)
e1
:
SetHintTiming
(
TIMING_DAMAGE_STEP
)
e1
:
SetCountLimit
(
1
,
100213004
+
EFFECT_COUNT_CODE_OATH
)
e1
:
SetCountLimit
(
1
,
100213004
)
e1
:
SetCondition
(
aux
.
dscon
)
e1
:
SetTarget
(
c100213004
.
target
)
e1
:
SetOperation
(
c100213004
.
activate
)
...
...
@@ -25,7 +25,7 @@ function c100213004.initial_effect(c)
c
:
RegisterEffect
(
e2
)
end
function
c100213004
.
filter
(
c
,
tp
)
return
c
:
IsFaceup
()
and
not
c
:
IsAttack
(
Duel
.
GetLP
(
tp
)
/
2
)
return
c
:
IsFaceup
()
and
not
c
:
IsAttack
(
Duel
.
GetLP
(
tp
))
end
function
c100213004
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
c100213004
.
filter
(
chkc
,
1
-
tp
)
end
...
...
@@ -39,7 +39,7 @@ function c100213004.activate(e,tp,eg,ep,ev,re,r,rp)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_SET_ATTACK_FINAL
)
e1
:
SetValue
(
Duel
.
GetLP
(
1
-
tp
)
/
2
)
e1
:
SetValue
(
Duel
.
GetLP
(
1
-
tp
))
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
tc
:
RegisterEffect
(
e1
)
end
...
...
@@ -64,7 +64,7 @@ function c100213004.atkop(e,tp,eg,ep,ev,re,r,rp)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_SET_ATTACK_FINAL
)
e1
:
SetValue
(
Duel
.
GetLP
(
tp
)
/
2
)
e1
:
SetValue
(
Duel
.
GetLP
(
tp
))
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
tc
:
RegisterEffect
(
e1
)
end
...
...
script/c100213005.lua
View file @
bcf8c623
--獸累々
function
c100213005
.
initial_effect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCategory
(
CATEGORY_POSITION
+
CATEGORY_DRAW
)
e1
:
SetCategory
(
CATEGORY_POSITION
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetHintTiming
(
0
,
TIMINGS_CHECK_MONSTER
+
TIMING_END_PHASE
)
...
...
@@ -23,7 +23,7 @@ end
function
c100213005
.
checkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
eg
:
GetFirst
()
while
tc
do
tc
:
RegisterFlagEffect
(
100213005
,
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
,
0
,
1
)
tc
:
RegisterFlagEffect
(
100213005
,
RESET_EVENT
+
RESETS_STANDARD
-
RESET_TEMP_REMOVE
+
RESET_PHASE
+
PHASE_END
,
0
,
1
)
tc
=
eg
:
GetNext
()
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