Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-scripts
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
Reinen
ygopro-scripts
Commits
1ff3d27a
Commit
1ff3d27a
authored
Feb 18, 2017
by
VanillaSalt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
f809dfae
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
10 deletions
+5
-10
c20007374.lua
c20007374.lua
+1
-0
c26211048.lua
c26211048.lua
+2
-2
c44508094.lua
c44508094.lua
+1
-4
c74892653.lua
c74892653.lua
+1
-4
No files found.
c20007374.lua
View file @
1ff3d27a
...
...
@@ -61,6 +61,7 @@ function c20007374.activate(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetValue
(
c20007374
.
eqlimit
)
c
:
RegisterEffect
(
e1
)
end
local
fid
=
c
:
GetFieldID
()
tc
:
RegisterFlagEffect
(
20007374
,
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_END
,
0
,
1
,
fid
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
...
...
c26211048.lua
View file @
1ff3d27a
...
...
@@ -21,10 +21,10 @@ function c26211048.eqcost(e,tp,eg,ep,ev,re,r,rp,chk)
e
:
GetHandler
():
RemoveOverlayCard
(
tp
,
1
,
1
,
REASON_COST
)
end
function
c26211048
.
eqfilter
(
c
)
return
c
:
IsLocation
(
LOCATION_MZONE
)
or
c
:
Is
Location
(
LOCATION_GRAVE
)
and
not
c
:
IsForbidden
()
return
c
:
IsLocation
(
LOCATION_MZONE
)
or
c
:
Is
Type
(
TYPE_MONSTER
)
and
not
c
:
IsForbidden
()
end
function
c26211048
.
eqtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
c
26211048
.
eqfilter
(
chkc
)
and
chkc
:
IsControler
(
1
-
tp
)
and
chkc
:
IsType
(
TYPE_MONSTER
)
end
if
chkc
then
return
c
hkc
:
IsLocation
(
LOCATION_GRAVE
+
LOCATION_MZONE
)
and
chkc
:
IsControler
(
1
-
tp
)
and
c26211048
.
eqfilter
(
chkc
)
end
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_SZONE
)
>
0
and
Duel
.
IsExistingTarget
(
c26211048
.
eqfilter
,
tp
,
0
,
LOCATION_GRAVE
+
LOCATION_MZONE
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_EQUIP
)
...
...
c44508094.lua
View file @
1ff3d27a
...
...
@@ -42,14 +42,11 @@ function c44508094.cost(e,tp,eg,ep,ev,re,r,rp,chk)
local
b1
=
e
:
GetHandler
():
IsReleasable
()
local
b2
=
Duel
.
IsExistingMatchingCard
(
c44508094
.
cfcost
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
if
chk
==
0
then
return
b1
or
b2
end
if
(
b2
and
b1
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
84012625
,
0
)))
or
(
b2
and
not
b1
)
then
if
b2
and
(
not
b1
or
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
84012625
,
0
)))
then
local
tg
=
Duel
.
GetFirstMatchingCard
(
c44508094
.
cfcost
,
tp
,
LOCATION_GRAVE
,
0
,
nil
)
Duel
.
Remove
(
tg
,
POS_FACEUP
,
REASON_COST
)
e
:
SetLabel
(
0
)
else
Duel
.
Release
(
e
:
GetHandler
(),
REASON_COST
)
e
:
SetLabel
(
1
)
end
end
function
c44508094
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
...
...
c74892653.lua
View file @
1ff3d27a
...
...
@@ -48,14 +48,11 @@ function c74892653.cost(e,tp,eg,ep,ev,re,r,rp,chk)
local
b1
=
e
:
GetHandler
():
IsReleasable
()
local
b2
=
Duel
.
IsExistingMatchingCard
(
c74892653
.
cfcost
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
if
chk
==
0
then
return
b1
or
b2
end
if
(
b2
and
b1
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
84012625
,
0
)))
or
(
b2
and
not
b1
)
then
if
b2
and
(
not
b1
or
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
84012625
,
0
)))
then
local
tg
=
Duel
.
GetFirstMatchingCard
(
c74892653
.
cfcost
,
tp
,
LOCATION_GRAVE
,
0
,
nil
)
Duel
.
Remove
(
tg
,
POS_FACEUP
,
REASON_COST
)
e
:
SetLabel
(
0
)
else
Duel
.
Release
(
e
:
GetHandler
(),
REASON_COST
)
e
:
SetLabel
(
1
)
end
end
function
c74892653
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
...
...
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