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
4d338ad3
Commit
4d338ad3
authored
Apr 26, 2021
by
HidarimeYume
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
yume fix
parent
f4bcbe7e
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
22 deletions
+21
-22
expansions/script/c71400001.lua
expansions/script/c71400001.lua
+18
-19
expansions/script/c71400038.lua
expansions/script/c71400038.lua
+1
-1
expansions/script/c71400043.lua
expansions/script/c71400043.lua
+2
-2
No files found.
expansions/script/c71400001.lua
View file @
4d338ad3
...
...
@@ -164,7 +164,7 @@ function yume.AddYumeFieldGlobal(c,id,ft)
esd2
:
SetRange
(
LOCATION_FZONE
)
esd2
:
SetOperation
(
yume
.
SelfToDeckOp
)
c
:
RegisterEffect
(
esd2
)
--
field activation
--
activate field
local
efa
=
Effect
.
CreateEffect
(
c
)
efa
:
SetDescription
(
aux
.
Stringid
(
71400001
,
2
))
efa
:
SetCategory
(
EFFECT_TYPE_ACTIVATE
)
...
...
@@ -172,8 +172,8 @@ function yume.AddYumeFieldGlobal(c,id,ft)
efa
:
SetCode
(
EVENT_LEAVE_FIELD
)
efa
:
SetRange
(
LOCATION_FZONE
)
efa
:
SetProperty
(
EFFECT_FLAG_DAMAGE_STEP
)
efa
:
SetCondition
(
yume
.
FieldActivation
Con
)
efa
:
SetOperation
(
yume
.
FieldActivation
Op
)
efa
:
SetCondition
(
yume
.
ActivateField
Con
)
efa
:
SetOperation
(
yume
.
ActivateField
Op
)
c
:
RegisterEffect
(
efa
)
end
--[[--old Against Yume
...
...
@@ -226,28 +226,28 @@ end
--Self To Deck
function
yume
.
SelfToDeckOp
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
not
re
:
GetHandler
():
IsSetCard
(
0x714
)
and
c
:
GetFlagEffect
(
1
)
>
0
then
if
not
re
:
GetHandler
():
IsSetCard
(
0x714
)
and
rp
==
tp
and
c
:
GetFlagEffect
(
1
)
>
0
then
Duel
.
SendtoDeck
(
c
,
nil
,
2
,
REASON_EFFECT
)
end
end
--Field Activation
function
yume
.
YumeFieldCheck
(
tp
,
num
,
ft
,
loc
)
function
yume
.
YumeFieldCheck
(
tp
,
id
,
ft
,
loc
)
ft
=
ft
or
0
num
=
num
or
0
id
=
id
or
0
loc
=
loc
or
LOCATION_DECK
return
Duel
.
IsExistingMatchingCard
(
yume
.
FieldActivationFilter
,
tp
,
loc
,
0
,
1
,
nil
,
tp
,
num
,
ft
)
return
Duel
.
IsExistingMatchingCard
(
yume
.
ActivateFieldFilter
,
tp
,
loc
,
0
,
1
,
nil
,
tp
,
id
,
ft
)
end
function
yume
.
YumeFieldCheckTarget
(
num
,
ft
,
loc
)
function
yume
.
YumeFieldCheckTarget
(
id
,
ft
,
loc
)
return
function
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
yume
.
YumeFieldCheck
(
tp
,
num
,
ft
,
loc
)
end
if
chk
==
0
then
return
yume
.
YumeFieldCheck
(
tp
,
id
,
ft
,
loc
)
end
end
end
function
yume
.
FieldActivation
(
tp
,
num
,
ft
,
loc
)
function
yume
.
FieldActivation
(
tp
,
id
,
ft
,
loc
)
ft
=
ft
or
0
num
=
num
or
0
id
=
id
or
0
loc
=
loc
or
LOCATION_DECK
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
aux
.
Stringid
(
71400001
,
3
))
local
tc
=
Duel
.
SelectMatchingCard
(
tp
,
yume
.
FieldActivationFilter
,
tp
,
loc
,
0
,
1
,
1
,
nil
,
tp
,
num
,
ft
):
GetFirst
()
local
tc
=
Duel
.
SelectMatchingCard
(
tp
,
yume
.
ActivateFieldFilter
,
tp
,
loc
,
0
,
1
,
1
,
nil
,
tp
,
id
,
ft
):
GetFirst
()
if
tc
then
local
fc
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_FZONE
,
0
)
if
fc
then
...
...
@@ -260,28 +260,27 @@ function yume.FieldActivation(tp,num,ft,loc)
local
tep
=
tc
:
GetControler
()
local
cost
=
te
:
GetCost
()
if
cost
then
cost
(
te
,
tep
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
1
)
end
local
id
=
yume
.
temp_card_field
[
tc
].
id
or
0
Duel
.
RaiseEvent
(
tc
,
4179255
,
te
,
0
,
tp
,
tp
,
Duel
.
GetCurrentChain
())
return
tc
end
end
function
yume
.
FieldActivationFilter
(
c
,
tp
,
num
,
ft
)
local
flag
=
c
:
IsType
(
TYPE_FIELD
)
and
c
:
GetActivateEffect
():
IsActivatable
(
tp
,
true
,
true
)
and
not
c
:
IsCode
(
num
)
function
yume
.
ActivateFieldFilter
(
c
,
tp
,
id
,
ft
)
local
flag
=
c
:
IsType
(
TYPE_FIELD
)
and
c
:
GetActivateEffect
():
IsActivatable
(
tp
,
true
,
true
)
and
not
c
:
IsCode
(
id
)
if
ft
==
0
then
return
flag
and
c
:
IsSetCard
(
0x3714
)
elseif
ft
==
1
then
return
flag
and
c
:
IsSetCard
(
0xb714
)
elseif
ft
==
2
then
return
flag
and
c
:
IsSetCard
(
0x7714
)
end
end
function
yume
.
FieldActivation
Con
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
yume
.
ActivateField
Con
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
return
c
:
IsReason
(
REASON_EFFECT
)
and
not
c
:
IsLocation
(
LOCATION_DECK
)
and
c
:
IsPreviousPosition
(
POS_FACEUP
)
end
function
yume
.
FieldActivation
Op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
yume
.
ActivateField
Op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
num
=
yume
.
temp_card_field
[
c
].
id
local
id
=
yume
.
temp_card_field
[
c
].
id
local
ft
=
yume
.
temp_card_field
[
c
].
ft
yume
.
FieldActivation
(
tp
,
num
,
ft
,
LOCATION_DECK
+
LOCATION_HAND
)
yume
.
FieldActivation
(
tp
,
id
,
ft
,
LOCATION_DECK
+
LOCATION_HAND
)
end
--uniquify the same name
function
yume
.
UniquifyCardName
(
g
)
...
...
expansions/script/c71400038.lua
View file @
4d338ad3
...
...
@@ -61,7 +61,7 @@ function c71400038.activate(e,tp,eg,ep,ev,re,r,rp)
local
e4a
=
e1
:
Clone
()
e4a
:
SetCode
(
EFFECT_CANNOT_DISEFFECT
)
Duel
.
RegisterEffect
(
e4a
,
tp
)
yume
.
RustFlag
=
true
;
Duel
.
RegisterFlagEffect
(
tp
,
71400038
,
0
,
0
,
0
)
end
function
c71400038
.
con1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
ep
==
tp
...
...
expansions/script/c71400043.lua
View file @
4d338ad3
...
...
@@ -77,7 +77,7 @@ function c71400043.op1(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c71400043
.
con2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
not
(
yume
.
RustFlag
or
e
:
GetHandler
():
IsStatus
(
STATUS_SPSUMMON_TURN
))
return
not
(
Duel
.
GetFlagEffect
(
tp
,
71400038
)
>
0
or
e
:
GetHandler
():
IsStatus
(
STATUS_SPSUMMON_TURN
))
end
function
c71400043
.
tg2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
...
...
@@ -94,7 +94,7 @@ function c71400043.op2(e,tp,eg,ep,ev,re,r,rp)
yume
.
FieldActivation
(
tp
,
num
,
2
,
LOCATION_GRAVE
+
LOCATION_DECK
)
end
function
c71400043
.
con3
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
yume
.
RustFlag
return
Duel
.
GetFlagEffect
(
tp
,
71400038
)
>
0
end
function
c71400043
.
filter3
(
c
,
tp
)
return
c
:
IsAbleToRemove
(
tp
,
POS_FACEDOWN
)
and
not
(
c
:
IsLocation
(
LOCATION_FZONE
)
and
c
:
IsType
(
TYPE_FIELD
)
and
c
:
IsSetCard
(
0x3714
)
and
c
:
IsFaceup
()
and
c
:
IsControler
(
tp
))
...
...
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