Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-pre-data
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
MyCard
ygopro-pre-data
Commits
d09de621
Commit
d09de621
authored
Oct 22, 2021
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
1e0d0f26
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
7 deletions
+20
-7
script/c100343002.lua
script/c100343002.lua
+1
-0
script/c101107008.lua
script/c101107008.lua
+4
-0
script/c19089195.lua
script/c19089195.lua
+15
-7
No files found.
script/c100343002.lua
View file @
d09de621
...
...
@@ -18,6 +18,7 @@ function c100343002.initial_effect(c)
e2
:
SetCategory
(
CATEGORY_SEARCH
+
CATEGORY_TOHAND
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e2
:
SetCode
(
EVENT_SUMMON_SUCCESS
)
e2
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e2
:
SetCountLimit
(
1
,
100343002
+
100
)
e2
:
SetTarget
(
c100343002
.
thtg
)
e2
:
SetOperation
(
c100343002
.
thop
)
...
...
script/c101107008.lua
View file @
d09de621
...
...
@@ -16,6 +16,7 @@ function c101107008.initial_effect(c)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_EQUIP
)
e2
:
SetCode
(
EFFECT_DEFENSE_ATTACK
)
e2
:
SetCondition
(
c101107008
.
dacon
)
e2
:
SetValue
(
1
)
c
:
RegisterEffect
(
e2
)
--unequip
...
...
@@ -63,6 +64,9 @@ end
function
c101107008
.
eqlimit
(
e
,
c
)
return
c
==
e
:
GetLabelObject
()
end
function
c101107008
.
dacon
(
e
,
ctp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
GetEquipTarget
():
IsSetCard
(
0x16c
)
end
function
c101107008
.
spfilter
(
c
,
def
)
return
c
:
IsFaceup
()
and
c
:
GetAttack
()
<=
def
and
c
:
IsAbleToHand
()
end
...
...
script/c19089195.lua
View file @
d09de621
...
...
@@ -30,7 +30,8 @@ function c19089195.initial_effect(c)
c
:
RegisterEffect
(
e3
)
end
function
c19089195
.
filter
(
c
,
tp
)
return
c
:
IsCode
(
22702055
)
and
c
:
GetActivateEffect
()
and
c
:
GetActivateEffect
():
IsActivatable
(
tp
,
true
,
true
)
return
c
:
IsCode
(
22702055
)
and
(
c
:
IsType
(
TYPE_FIELD
)
or
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
>
0
)
and
c
:
GetActivateEffect
()
and
c
:
GetActivateEffect
():
IsActivatable
(
tp
,
true
,
true
)
end
function
c19089195
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetMatchingGroup
(
aux
.
NecroValleyFilter
(
c19089195
.
filter
),
tp
,
LOCATION_HAND
+
LOCATION_GRAVE
,
0
,
nil
,
tp
)
...
...
@@ -38,18 +39,25 @@ function c19089195.activate(e,tp,eg,ep,ev,re,r,rp)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOFIELD
)
local
tc
=
Duel
.
SelectMatchingCard
(
tp
,
aux
.
NecroValleyFilter
(
c19089195
.
filter
),
tp
,
LOCATION_HAND
+
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
tp
):
GetFirst
()
if
tc
then
local
fc
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_FZONE
,
0
)
if
fc
then
Duel
.
SendtoGrave
(
fc
,
REASON_RULE
)
Duel
.
BreakEffect
()
local
field
=
tc
:
IsType
(
TYPE_FIELD
)
if
field
then
local
fc
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_FZONE
,
0
)
if
fc
then
Duel
.
SendtoGrave
(
fc
,
REASON_RULE
)
Duel
.
BreakEffect
()
end
Duel
.
MoveToField
(
tc
,
tp
,
tp
,
LOCATION_FZONE
,
POS_FACEUP
,
true
)
else
Duel
.
MoveToField
(
tc
,
tp
,
tp
,
LOCATION_SZONE
,
POS_FACEUP
,
true
)
end
Duel
.
MoveToField
(
tc
,
tp
,
tp
,
LOCATION_FZONE
,
POS_FACEUP
,
true
)
local
te
=
tc
:
GetActivateEffect
()
te
:
UseCountLimit
(
tp
,
1
,
true
)
local
tep
=
tc
:
GetControler
()
local
cost
=
te
:
GetCost
()
if
cost
then
cost
(
te
,
tep
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
1
)
end
Duel
.
RaiseEvent
(
tc
,
4179255
,
te
,
0
,
tp
,
tp
,
Duel
.
GetCurrentChain
())
if
field
then
Duel
.
RaiseEvent
(
tc
,
4179255
,
te
,
0
,
tp
,
tp
,
Duel
.
GetCurrentChain
())
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