Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-scripts-888
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
3
Merge Requests
3
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
MyCard
ygopro-scripts-888
Commits
f6ac4136
Commit
f6ac4136
authored
Jun 18, 2022
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
format
parent
00172c3a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
c45001322.lua
c45001322.lua
+4
-1
c71406430.lua
c71406430.lua
+4
-1
No files found.
c45001322.lua
View file @
f6ac4136
...
...
@@ -24,7 +24,7 @@ function s.initial_effect(c)
e3
:
SetCode
(
EFFECT_CANNOT_REMOVE
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetTargetRange
(
1
,
1
)
e3
:
SetTarget
(
function
(
e
,
c
,
tp
,
r
)
return
c
==
e
:
GetHandler
()
and
r
==
REASON_EFFECT
end
)
e3
:
SetTarget
(
s
.
rmlimit
)
e3
:
SetCondition
(
s
.
matcon
)
c
:
RegisterEffect
(
e3
)
--buff atk/def
...
...
@@ -53,6 +53,9 @@ function s.matcon(e)
local
c
=
e
:
GetHandler
()
return
c
:
IsSummonType
(
SUMMON_TYPE_RITUAL
)
and
c
:
GetFlagEffect
(
id
)
>
0
end
function
s
.
rmlimit
(
e
,
c
,
tp
,
r
)
return
c
==
e
:
GetHandler
()
and
r
==
REASON_EFFECT
end
function
s
.
regop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
e
:
GetHandler
():
RegisterFlagEffect
(
id
,
RESET_EVENT
+
RESETS_STANDARD
-
RESET_TURN_SET
+
RESET_CHAIN
,
0
,
1
)
end
...
...
c71406430.lua
View file @
f6ac4136
...
...
@@ -31,7 +31,7 @@ function s.initial_effect(c)
e4
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e4
:
SetCode
(
EVENT_BATTLE_DAMAGE
)
e4
:
SetCountLimit
(
1
,
id
+
o
)
e4
:
SetCondition
(
function
(
e
,
tp
,
eg
,
ep
)
return
ep
==
1
-
tp
end
)
e4
:
SetCondition
(
s
.
f2dcon
)
e4
:
SetTarget
(
s
.
f2dtg
)
e4
:
SetOperation
(
s
.
f2dop
)
c
:
RegisterEffect
(
e4
)
...
...
@@ -59,6 +59,9 @@ function s.setop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
SSet
(
tp
,
g
)
end
end
function
s
.
f2dcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
ep
==
1
-
tp
end
function
s
.
f2dtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsControler
(
1
-
tp
)
and
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsFaceup
()
and
chkc
:
IsAbleToDeck
()
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
aux
.
AND
(
Card
.
IsFaceup
,
Card
.
IsAbleToDeck
),
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
)
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