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
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
Vee4
ygopro-scripts-888
Commits
d3c7bde0
Commit
d3c7bde0
authored
Apr 28, 2022
by
mercury233
Committed by
GitHub
Apr 28, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add Auxiliary.ndcon (#1867)
parent
e5caea14
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
12 additions
and
7 deletions
+12
-7
c42444868.lua
c42444868.lua
+2
-2
c57831349.lua
c57831349.lua
+1
-1
c59957503.lua
c59957503.lua
+1
-1
c8038143.lua
c8038143.lua
+2
-2
c86060749.lua
c86060749.lua
+1
-1
utility.lua
utility.lua
+5
-0
No files found.
c42444868.lua
View file @
d3c7bde0
...
...
@@ -46,9 +46,9 @@ function c42444868.cost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
PayLPCost
(
tp
,
1000
)
end
function
c42444868
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
if
chk
==
0
then
return
aux
.
ndcon
(
tp
,
re
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_NEGATE
,
eg
,
1
,
0
,
0
)
if
re
:
GetHandler
():
Is
AbleToDeck
()
and
re
:
GetHandler
():
Is
RelateToEffect
(
re
)
then
if
re
:
GetHandler
():
IsRelateToEffect
(
re
)
then
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TODECK
,
eg
,
1
,
0
,
0
)
end
end
...
...
c57831349.lua
View file @
d3c7bde0
...
...
@@ -18,7 +18,7 @@ function c57831349.condition(e,tp,eg,ep,ev,re,r,rp)
and
(
re
:
IsActiveType
(
TYPE_MONSTER
)
or
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
))
and
Duel
.
IsChainNegatable
(
ev
)
end
function
c57831349
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
if
chk
==
0
then
return
aux
.
ndcon
(
tp
,
re
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_NEGATE
,
eg
,
1
,
0
,
0
)
if
re
:
GetHandler
():
IsRelateToEffect
(
re
)
then
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TODECK
,
eg
,
1
,
0
,
0
)
...
...
c59957503.lua
View file @
d3c7bde0
...
...
@@ -30,7 +30,7 @@ function c59957503.condition(e,tp,eg,ep,ev,re,r,rp)
and
(
re
:
IsActiveType
(
TYPE_MONSTER
)
or
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
))
and
Duel
.
IsChainNegatable
(
ev
)
end
function
c59957503
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
if
chk
==
0
then
return
aux
.
ndcon
(
tp
,
re
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_NEGATE
,
eg
,
1
,
0
,
0
)
if
re
:
GetHandler
():
IsRelateToEffect
(
re
)
then
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TODECK
,
eg
,
1
,
0
,
0
)
...
...
c8038143.lua
View file @
d3c7bde0
...
...
@@ -38,7 +38,7 @@ function c8038143.target(e,tp,eg,ep,ev,re,r,rp,chk)
if
tgp
~=
tp
and
(
te
:
IsActiveType
(
TYPE_MONSTER
)
or
te
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
))
and
Duel
.
IsChainNegatable
(
i
)
then
local
tc
=
te
:
GetHandler
()
ng
:
AddCard
(
tc
)
if
tc
:
IsOnField
()
and
tc
:
IsRelateToEffect
(
te
)
and
not
tc
:
IsHasEffect
(
EFFECT_CANNOT_TO_DECK
)
and
Duel
.
IsPlayerCanSendtoDeck
(
tp
,
tc
)
then
if
tc
:
IsOnField
()
and
tc
:
IsRelateToEffect
(
te
)
and
tc
:
IsAbleToDeck
(
)
then
dg
:
AddCard
(
tc
)
end
end
...
...
@@ -53,7 +53,7 @@ function c8038143.activate(e,tp,eg,ep,ev,re,r,rp)
local
te
,
tgp
=
Duel
.
GetChainInfo
(
i
,
CHAININFO_TRIGGERING_EFFECT
,
CHAININFO_TRIGGERING_PLAYER
)
if
tgp
~=
tp
and
(
te
:
IsActiveType
(
TYPE_MONSTER
)
or
te
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
))
and
Duel
.
NegateActivation
(
i
)
then
local
tc
=
te
:
GetHandler
()
if
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsRelateToEffect
(
te
)
and
not
tc
:
IsHasEffect
(
EFFECT_CANNOT_TO_DECK
)
and
Duel
.
IsPlayerCanSendtoDeck
(
tp
,
tc
)
then
if
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsRelateToEffect
(
te
)
and
tc
:
IsAbleToDeck
(
)
then
tc
:
CancelToGrave
()
dg
:
AddCard
(
tc
)
end
...
...
c86060749.lua
View file @
d3c7bde0
...
...
@@ -24,7 +24,7 @@ function c86060749.cost(e,tp,eg,ep,ev,re,r,rp,chk)
end
function
c86060749
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
rc
=
re
:
GetHandler
()
if
chk
==
0
then
return
Duel
.
IsPlayerCanSendtoDeck
(
tp
)
end
if
chk
==
0
then
return
aux
.
ndcon
(
tp
,
re
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_NEGATE
,
eg
,
1
,
0
,
0
)
if
rc
:
IsRelateToEffect
(
re
)
then
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TODECK
,
eg
,
1
,
0
,
0
)
...
...
utility.lua
View file @
d3c7bde0
...
...
@@ -2819,6 +2819,11 @@ function Auxiliary.nbcon(tp,re)
return
Duel
.
IsPlayerCanRemove
(
tp
)
and
(
not
rc
:
IsRelateToEffect
(
re
)
or
rc
:
IsAbleToRemove
())
end
--condition of "negate activation and return to deck"
function
Auxiliary
.
ndcon
(
tp
,
re
)
local
rc
=
re
:
GetHandler
()
return
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
or
not
rc
:
IsRelateToEffect
(
re
)
or
rc
:
IsAbleToDeck
()
end
--send to deck of contact fusion
function
Auxiliary
.
tdcfop
(
c
)
return
function
(
g
)
...
...
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