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
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
Commits
593181c4
Commit
593181c4
authored
Dec 25, 2016
by
salix5
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
necro valley
parent
0c3fd997
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
10 deletions
+6
-10
c47355498.lua
c47355498.lua
+6
-10
No files found.
c47355498.lua
View file @
593181c4
...
...
@@ -71,7 +71,7 @@ function c47355498.disfilter(c,im0,im1)
if
c
:
IsControler
(
0
)
then
return
im0
and
c
:
IsHasEffect
(
EFFECT_NECRO_VALLEY
)
else
return
im1
and
c
:
IsHasEffect
(
EFFECT_NECRO_VALLEY
)
end
end
function
c47355498
.
discheck
(
ev
,
category
,
re
,
im0
,
im1
,
targets
)
function
c47355498
.
discheck
(
ev
,
category
,
re
,
im0
,
im1
)
local
ex
,
tg
,
ct
,
p
,
v
=
Duel
.
GetOperationInfo
(
ev
,
category
)
if
not
ex
then
return
false
end
if
v
==
LOCATION_GRAVE
then
...
...
@@ -89,16 +89,12 @@ function c47355498.disop(e,tp,eg,ep,ev,re,r,rp)
local
tc
=
re
:
GetHandler
()
if
not
Duel
.
IsChainDisablable
(
ev
)
or
tc
:
IsHasEffect
(
EFFECT_NECRO_VALLEY_IM
)
then
return
end
local
res
=
false
local
targets
=
nil
if
re
:
IsHasProperty
(
EFFECT_FLAG_CARD_TARGET
)
then
targets
=
Duel
.
GetChainInfo
(
ev
,
CHAININFO_TARGET_CARDS
)
end
local
im0
=
not
Duel
.
IsPlayerAffectedByEffect
(
0
,
EFFECT_NECRO_VALLEY_IM
)
local
im1
=
not
Duel
.
IsPlayerAffectedByEffect
(
1
,
EFFECT_NECRO_VALLEY_IM
)
if
not
res
and
c47355498
.
discheck
(
ev
,
CATEGORY_SPECIAL_SUMMON
,
re
,
im0
,
im1
,
targets
)
then
res
=
true
end
if
not
res
and
c47355498
.
discheck
(
ev
,
CATEGORY_REMOVE
,
re
,
im0
,
im1
,
targets
)
then
res
=
true
end
if
not
res
and
c47355498
.
discheck
(
ev
,
CATEGORY_TOHAND
,
re
,
im0
,
im1
,
targets
)
then
res
=
true
end
if
not
res
and
c47355498
.
discheck
(
ev
,
CATEGORY_TODECK
,
re
,
im0
,
im1
,
targets
)
then
res
=
true
end
if
not
res
and
c47355498
.
discheck
(
ev
,
CATEGORY_LEAVE_GRAVE
,
re
,
im0
,
im1
,
targets
)
then
res
=
true
end
if
not
res
and
c47355498
.
discheck
(
ev
,
CATEGORY_SPECIAL_SUMMON
,
re
,
im0
,
im1
)
then
res
=
true
end
if
not
res
and
c47355498
.
discheck
(
ev
,
CATEGORY_REMOVE
,
re
,
im0
,
im1
)
then
res
=
true
end
if
not
res
and
c47355498
.
discheck
(
ev
,
CATEGORY_TOHAND
,
re
,
im0
,
im1
)
then
res
=
true
end
if
not
res
and
c47355498
.
discheck
(
ev
,
CATEGORY_TODECK
,
re
,
im0
,
im1
)
then
res
=
true
end
if
not
res
and
c47355498
.
discheck
(
ev
,
CATEGORY_LEAVE_GRAVE
,
re
,
im0
,
im1
)
then
res
=
true
end
if
res
then
Duel
.
NegateEffect
(
ev
)
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