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
c7af562f
Commit
c7af562f
authored
Sep 03, 2022
by
mercury233
Committed by
GitHub
Sep 03, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update Necrovalley ruling (#1956)
parent
9feaa58a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
8 deletions
+14
-8
c12644061.lua
c12644061.lua
+7
-4
c4064256.lua
c4064256.lua
+7
-4
No files found.
c12644061.lua
View file @
c7af562f
...
@@ -9,12 +9,15 @@ function c12644061.initial_effect(c)
...
@@ -9,12 +9,15 @@ function c12644061.initial_effect(c)
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetRange
(
LOCATION_FZONE
)
e2
:
SetRange
(
LOCATION_FZONE
)
e2
:
SetTargetRange
(
LOCATION_MZONE
+
LOCATION_GRAVE
,
LOCATION_MZONE
+
LOCATION_GRAV
E
)
e2
:
SetTargetRange
(
LOCATION_MZONE
,
LOCATION_MZON
E
)
e2
:
SetCode
(
EFFECT_CHANGE_ATTRIBUTE
)
e2
:
SetCode
(
EFFECT_CHANGE_ATTRIBUTE
)
e2
:
SetCondition
(
c12644061
.
condition
)
e2
:
SetTarget
(
aux
.
TargetBoolFunction
(
Card
.
IsSetCard
,
0x1034
))
e2
:
SetTarget
(
aux
.
TargetBoolFunction
(
Card
.
IsSetCard
,
0x1034
))
e2
:
SetValue
(
ATTRIBUTE_DARK
)
e2
:
SetValue
(
ATTRIBUTE_DARK
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
local
e2g
=
e2
:
Clone
()
e2g
:
SetTargetRange
(
LOCATION_GRAVE
,
LOCATION_GRAVE
)
e2g
:
SetCondition
(
c12644061
.
gravecon
)
c
:
RegisterEffect
(
e2g
)
--negate
--negate
local
e3
=
Effect
.
CreateEffect
(
c
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
...
@@ -51,7 +54,7 @@ function c12644061.initial_effect(c)
...
@@ -51,7 +54,7 @@ function c12644061.initial_effect(c)
e5
:
SetRange
(
LOCATION_FZONE
)
e5
:
SetRange
(
LOCATION_FZONE
)
e5
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e5
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e5
:
SetTargetRange
(
1
,
1
)
e5
:
SetTargetRange
(
1
,
1
)
e5
:
SetCondition
(
c12644061
.
conditi
on
)
e5
:
SetCondition
(
c12644061
.
gravec
on
)
e5
:
SetValue
(
ATTRIBUTE_DARK
)
e5
:
SetValue
(
ATTRIBUTE_DARK
)
e5
:
SetTarget
(
aux
.
TargetBoolFunction
(
Card
.
IsSetCard
,
0x1034
))
e5
:
SetTarget
(
aux
.
TargetBoolFunction
(
Card
.
IsSetCard
,
0x1034
))
c
:
RegisterEffect
(
e5
)
c
:
RegisterEffect
(
e5
)
...
@@ -68,7 +71,7 @@ end
...
@@ -68,7 +71,7 @@ end
function
c12644061
.
distg
(
e
,
c
)
function
c12644061
.
distg
(
e
,
c
)
return
c
:
GetFlagEffect
(
12644061
)
~=
0
return
c
:
GetFlagEffect
(
12644061
)
~=
0
end
end
function
c12644061
.
conditi
on
(
e
)
function
c12644061
.
gravec
on
(
e
)
local
tp
=
e
:
GetHandlerPlayer
()
local
tp
=
e
:
GetHandlerPlayer
()
return
not
Duel
.
IsPlayerAffectedByEffect
(
tp
,
EFFECT_NECRO_VALLEY
)
return
not
Duel
.
IsPlayerAffectedByEffect
(
tp
,
EFFECT_NECRO_VALLEY
)
and
not
Duel
.
IsPlayerAffectedByEffect
(
1
-
tp
,
EFFECT_NECRO_VALLEY
)
and
not
Duel
.
IsPlayerAffectedByEffect
(
1
-
tp
,
EFFECT_NECRO_VALLEY
)
...
...
c4064256.lua
View file @
c7af562f
...
@@ -9,11 +9,14 @@ function c4064256.initial_effect(c)
...
@@ -9,11 +9,14 @@ function c4064256.initial_effect(c)
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetRange
(
LOCATION_FZONE
)
e2
:
SetRange
(
LOCATION_FZONE
)
e2
:
SetTargetRange
(
LOCATION_MZONE
+
LOCATION_GRAVE
,
LOCATION_MZONE
+
LOCATION_GRAV
E
)
e2
:
SetTargetRange
(
LOCATION_MZONE
,
LOCATION_MZON
E
)
e2
:
SetCode
(
EFFECT_CHANGE_RACE
)
e2
:
SetCode
(
EFFECT_CHANGE_RACE
)
e2
:
SetCondition
(
c4064256
.
condition
)
e2
:
SetValue
(
RACE_ZOMBIE
)
e2
:
SetValue
(
RACE_ZOMBIE
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
local
e2g
=
e2
:
Clone
()
e2g
:
SetTargetRange
(
LOCATION_GRAVE
,
LOCATION_GRAVE
)
e2g
:
SetCondition
(
c4064256
.
gravecon
)
c
:
RegisterEffect
(
e2g
)
--summon limit
--summon limit
local
e3
=
Effect
.
CreateEffect
(
c
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
)
...
@@ -33,14 +36,14 @@ function c4064256.initial_effect(c)
...
@@ -33,14 +36,14 @@ function c4064256.initial_effect(c)
e5
:
SetRange
(
LOCATION_FZONE
)
e5
:
SetRange
(
LOCATION_FZONE
)
e5
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e5
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e5
:
SetTargetRange
(
1
,
1
)
e5
:
SetTargetRange
(
1
,
1
)
e5
:
SetCondition
(
c4064256
.
conditi
on
)
e5
:
SetCondition
(
c4064256
.
gravec
on
)
e5
:
SetValue
(
RACE_ZOMBIE
)
e5
:
SetValue
(
RACE_ZOMBIE
)
c
:
RegisterEffect
(
e5
)
c
:
RegisterEffect
(
e5
)
end
end
function
c4064256
.
sumlimit
(
e
,
c
,
tp
,
sumtp
)
function
c4064256
.
sumlimit
(
e
,
c
,
tp
,
sumtp
)
return
bit
.
band
(
sumtp
,
SUMMON_TYPE_ADVANCE
)
==
SUMMON_TYPE_ADVANCE
and
c
:
GetRace
()
~=
RACE_ZOMBIE
return
bit
.
band
(
sumtp
,
SUMMON_TYPE_ADVANCE
)
==
SUMMON_TYPE_ADVANCE
and
c
:
GetRace
()
~=
RACE_ZOMBIE
end
end
function
c4064256
.
conditi
on
(
e
)
function
c4064256
.
gravec
on
(
e
)
local
tp
=
e
:
GetHandlerPlayer
()
local
tp
=
e
:
GetHandlerPlayer
()
return
not
Duel
.
IsPlayerAffectedByEffect
(
tp
,
EFFECT_NECRO_VALLEY
)
return
not
Duel
.
IsPlayerAffectedByEffect
(
tp
,
EFFECT_NECRO_VALLEY
)
and
not
Duel
.
IsPlayerAffectedByEffect
(
1
-
tp
,
EFFECT_NECRO_VALLEY
)
and
not
Duel
.
IsPlayerAffectedByEffect
(
1
-
tp
,
EFFECT_NECRO_VALLEY
)
...
...
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