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
b5261a3a
Commit
b5261a3a
authored
May 26, 2022
by
mercury233
Committed by
GitHub
May 26, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix negate and banish effects (#1874)
parent
7689a96f
Changes
19
Show whitespace changes
Inline
Side-by-side
Showing
19 changed files
with
38 additions
and
128 deletions
+38
-128
c14799437.lua
c14799437.lua
+1
-8
c23440231.lua
c23440231.lua
+1
-8
c24842059.lua
c24842059.lua
+5
-0
c32617464.lua
c32617464.lua
+1
-8
c34695290.lua
c34695290.lua
+1
-8
c39468724.lua
c39468724.lua
+1
-8
c40939228.lua
c40939228.lua
+5
-0
c51849216.lua
c51849216.lua
+1
-8
c55063751.lua
c55063751.lua
+1
-8
c6182103.lua
c6182103.lua
+1
-8
c65703851.lua
c65703851.lua
+1
-8
c703897.lua
c703897.lua
+1
-8
c72648810.lua
c72648810.lua
+1
-8
c7403341.lua
c7403341.lua
+1
-8
c75286621.lua
c75286621.lua
+1
-8
c88234821.lua
c88234821.lua
+1
-8
c94662235.lua
c94662235.lua
+1
-8
c99188141.lua
c99188141.lua
+1
-8
utility.lua
utility.lua
+12
-0
No files found.
c14799437.lua
View file @
b5261a3a
...
@@ -37,7 +37,7 @@ function c14799437.initial_effect(c)
...
@@ -37,7 +37,7 @@ function c14799437.initial_effect(c)
e4
:
SetCountLimit
(
1
)
e4
:
SetCountLimit
(
1
)
e4
:
SetCondition
(
c14799437
.
negcon
)
e4
:
SetCondition
(
c14799437
.
negcon
)
e4
:
SetCost
(
c14799437
.
negcost
)
e4
:
SetCost
(
c14799437
.
negcost
)
e4
:
SetTarget
(
c14799437
.
neg
tg
)
e4
:
SetTarget
(
aux
.
nb
tg
)
e4
:
SetOperation
(
c14799437
.
negop
)
e4
:
SetOperation
(
c14799437
.
negop
)
c
:
RegisterEffect
(
e4
)
c
:
RegisterEffect
(
e4
)
end
end
...
@@ -101,13 +101,6 @@ function c14799437.negcost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -101,13 +101,6 @@ function c14799437.negcost(e,tp,eg,ep,ev,re,r,rp,chk)
local
g
=
Duel
.
SelectReleaseGroup
(
tp
,
c14799437
.
cfilter
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectReleaseGroup
(
tp
,
c14799437
.
cfilter
,
1
,
1
,
nil
)
Duel
.
Release
(
g
,
REASON_COST
)
Duel
.
Release
(
g
,
REASON_COST
)
end
end
function
c14799437
.
negtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
aux
.
nbcon
(
tp
,
re
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_NEGATE
,
eg
,
1
,
0
,
0
)
if
re
:
GetHandler
():
IsRelateToEffect
(
re
)
then
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
eg
,
1
,
0
,
0
)
end
end
function
c14799437
.
negop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c14799437
.
negop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
NegateActivation
(
ev
)
and
re
:
GetHandler
():
IsRelateToEffect
(
re
)
then
if
Duel
.
NegateActivation
(
ev
)
and
re
:
GetHandler
():
IsRelateToEffect
(
re
)
then
Duel
.
Remove
(
eg
,
POS_FACEUP
,
REASON_EFFECT
)
Duel
.
Remove
(
eg
,
POS_FACEUP
,
REASON_EFFECT
)
...
...
c23440231.lua
View file @
b5261a3a
...
@@ -35,7 +35,7 @@ function c23440231.initial_effect(c)
...
@@ -35,7 +35,7 @@ function c23440231.initial_effect(c)
e4
:
SetCountLimit
(
1
)
e4
:
SetCountLimit
(
1
)
e4
:
SetCondition
(
c23440231
.
negcon
)
e4
:
SetCondition
(
c23440231
.
negcon
)
e4
:
SetCost
(
c23440231
.
negcost
)
e4
:
SetCost
(
c23440231
.
negcost
)
e4
:
SetTarget
(
c23440231
.
neg
tg
)
e4
:
SetTarget
(
aux
.
nb
tg
)
e4
:
SetOperation
(
c23440231
.
negop
)
e4
:
SetOperation
(
c23440231
.
negop
)
c
:
RegisterEffect
(
e4
)
c
:
RegisterEffect
(
e4
)
end
end
...
@@ -102,13 +102,6 @@ function c23440231.negcost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -102,13 +102,6 @@ function c23440231.negcost(e,tp,eg,ep,ev,re,r,rp,chk)
local
g
=
Duel
.
SelectReleaseGroup
(
tp
,
c23440231
.
cfilter
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectReleaseGroup
(
tp
,
c23440231
.
cfilter
,
1
,
1
,
nil
)
Duel
.
Release
(
g
,
REASON_COST
)
Duel
.
Release
(
g
,
REASON_COST
)
end
end
function
c23440231
.
negtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
aux
.
nbcon
(
tp
,
re
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_NEGATE
,
eg
,
1
,
0
,
0
)
if
re
:
GetHandler
():
IsRelateToEffect
(
re
)
then
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
eg
,
1
,
0
,
0
)
end
end
function
c23440231
.
negop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c23440231
.
negop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
NegateActivation
(
ev
)
and
re
:
GetHandler
():
IsRelateToEffect
(
re
)
then
if
Duel
.
NegateActivation
(
ev
)
and
re
:
GetHandler
():
IsRelateToEffect
(
re
)
then
Duel
.
Remove
(
eg
,
POS_FACEUP
,
REASON_EFFECT
)
Duel
.
Remove
(
eg
,
POS_FACEUP
,
REASON_EFFECT
)
...
...
c24842059.lua
View file @
b5261a3a
...
@@ -45,6 +45,11 @@ function c24842059.distg(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -45,6 +45,11 @@ function c24842059.distg(e,tp,eg,ep,ev,re,r,rp,chk)
if
re
:
GetHandler
():
IsRelateToEffect
(
re
)
then
if
re
:
GetHandler
():
IsRelateToEffect
(
re
)
then
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
eg
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
eg
,
1
,
0
,
0
)
end
end
if
re
:
GetActivateLocation
()
==
LOCATION_GRAVE
then
e
:
SetCategory
(
e
:
GetCategory
()
|
CATEGORY_GRAVE_ACTION
)
else
e
:
SetCategory
(
e
:
GetCategory
()
&~
CATEGORY_GRAVE_ACTION
)
end
end
end
function
c24842059
.
disop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c24842059
.
disop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
NegateEffect
(
ev
)
and
re
:
GetHandler
():
IsRelateToEffect
(
re
)
then
if
Duel
.
NegateEffect
(
ev
)
and
re
:
GetHandler
():
IsRelateToEffect
(
re
)
then
...
...
c32617464.lua
View file @
b5261a3a
...
@@ -34,7 +34,7 @@ function c32617464.initial_effect(c)
...
@@ -34,7 +34,7 @@ function c32617464.initial_effect(c)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetCountLimit
(
1
)
e3
:
SetCountLimit
(
1
)
e3
:
SetCondition
(
c32617464
.
negcon
)
e3
:
SetCondition
(
c32617464
.
negcon
)
e3
:
SetTarget
(
c32617464
.
neg
tg
)
e3
:
SetTarget
(
aux
.
nb
tg
)
e3
:
SetOperation
(
c32617464
.
negop
)
e3
:
SetOperation
(
c32617464
.
negop
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
end
end
...
@@ -65,13 +65,6 @@ function c32617464.negcon(e,tp,eg,ep,ev,re,r,rp)
...
@@ -65,13 +65,6 @@ function c32617464.negcon(e,tp,eg,ep,ev,re,r,rp)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
return
not
c
:
IsStatus
(
STATUS_BATTLE_DESTROYED
)
and
Duel
.
IsChainNegatable
(
ev
)
and
c
:
GetMutualLinkedGroupCount
()
>=
3
return
not
c
:
IsStatus
(
STATUS_BATTLE_DESTROYED
)
and
Duel
.
IsChainNegatable
(
ev
)
and
c
:
GetMutualLinkedGroupCount
()
>=
3
end
end
function
c32617464
.
negtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
aux
.
nbcon
(
tp
,
re
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_NEGATE
,
eg
,
1
,
0
,
0
)
if
re
:
GetHandler
():
IsRelateToEffect
(
re
)
then
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
eg
,
1
,
0
,
0
)
end
end
function
c32617464
.
negop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c32617464
.
negop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
NegateActivation
(
ev
)
and
re
:
GetHandler
():
IsRelateToEffect
(
re
)
then
if
Duel
.
NegateActivation
(
ev
)
and
re
:
GetHandler
():
IsRelateToEffect
(
re
)
then
Duel
.
Remove
(
eg
,
POS_FACEUP
,
REASON_EFFECT
)
Duel
.
Remove
(
eg
,
POS_FACEUP
,
REASON_EFFECT
)
...
...
c34695290.lua
View file @
b5261a3a
...
@@ -25,7 +25,7 @@ function c34695290.initial_effect(c)
...
@@ -25,7 +25,7 @@ function c34695290.initial_effect(c)
e3
:
SetCountLimit
(
1
,
34695290
)
e3
:
SetCountLimit
(
1
,
34695290
)
e3
:
SetCondition
(
c34695290
.
negcon
)
e3
:
SetCondition
(
c34695290
.
negcon
)
e3
:
SetCost
(
c34695290
.
negcost
)
e3
:
SetCost
(
c34695290
.
negcost
)
e3
:
SetTarget
(
c34695290
.
neg
tg
)
e3
:
SetTarget
(
aux
.
nb
tg
)
e3
:
SetOperation
(
c34695290
.
negop
)
e3
:
SetOperation
(
c34695290
.
negop
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
--special summon
--special summon
...
@@ -56,13 +56,6 @@ function c34695290.negcost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -56,13 +56,6 @@ function c34695290.negcost(e,tp,eg,ep,ev,re,r,rp,chk)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
Card
.
IsAbleToRemoveAsCost
,
tp
,
LOCATION_HAND
+
LOCATION_ONFIELD
,
0
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
Card
.
IsAbleToRemoveAsCost
,
tp
,
LOCATION_HAND
+
LOCATION_ONFIELD
,
0
,
1
,
1
,
nil
)
Duel
.
Remove
(
g
,
POS_FACEUP
,
REASON_COST
)
Duel
.
Remove
(
g
,
POS_FACEUP
,
REASON_COST
)
end
end
function
c34695290
.
negtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
aux
.
nbcon
(
tp
,
re
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_NEGATE
,
eg
,
1
,
0
,
0
)
if
re
:
GetHandler
():
IsRelateToEffect
(
re
)
then
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
eg
,
1
,
0
,
0
)
end
end
function
c34695290
.
negop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c34695290
.
negop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
NegateActivation
(
ev
)
and
re
:
GetHandler
():
IsRelateToEffect
(
re
)
then
if
Duel
.
NegateActivation
(
ev
)
and
re
:
GetHandler
():
IsRelateToEffect
(
re
)
then
Duel
.
Remove
(
eg
,
POS_FACEUP
,
REASON_EFFECT
)
Duel
.
Remove
(
eg
,
POS_FACEUP
,
REASON_EFFECT
)
...
...
c39468724.lua
View file @
b5261a3a
...
@@ -30,7 +30,7 @@ function c39468724.initial_effect(c)
...
@@ -30,7 +30,7 @@ function c39468724.initial_effect(c)
e3
:
SetCountLimit
(
1
,
39468725
)
e3
:
SetCountLimit
(
1
,
39468725
)
e3
:
SetCondition
(
c39468724
.
negcon
)
e3
:
SetCondition
(
c39468724
.
negcon
)
e3
:
SetCost
(
c39468724
.
negcost
)
e3
:
SetCost
(
c39468724
.
negcost
)
e3
:
SetTarget
(
c39468724
.
neg
tg
)
e3
:
SetTarget
(
aux
.
nb
tg
)
e3
:
SetOperation
(
c39468724
.
negop
)
e3
:
SetOperation
(
c39468724
.
negop
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
end
end
...
@@ -77,13 +77,6 @@ function c39468724.negcost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -77,13 +77,6 @@ function c39468724.negcost(e,tp,eg,ep,ev,re,r,rp,chk)
local
g
=
Duel
.
SelectReleaseGroupEx
(
tp
,
c39468724
.
negfilter
,
1
,
1
,
nil
,
tp
)
local
g
=
Duel
.
SelectReleaseGroupEx
(
tp
,
c39468724
.
negfilter
,
1
,
1
,
nil
,
tp
)
Duel
.
Release
(
g
,
REASON_COST
)
Duel
.
Release
(
g
,
REASON_COST
)
end
end
function
c39468724
.
negtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
aux
.
nbcon
(
tp
,
re
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_NEGATE
,
eg
,
1
,
0
,
0
)
if
re
:
GetHandler
():
IsRelateToEffect
(
re
)
then
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
eg
,
1
,
0
,
0
)
end
end
function
c39468724
.
negop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c39468724
.
negop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
NegateActivation
(
ev
)
and
re
:
GetHandler
():
IsRelateToEffect
(
re
)
then
if
Duel
.
NegateActivation
(
ev
)
and
re
:
GetHandler
():
IsRelateToEffect
(
re
)
then
Duel
.
Remove
(
eg
,
POS_FACEUP
,
REASON_EFFECT
)
Duel
.
Remove
(
eg
,
POS_FACEUP
,
REASON_EFFECT
)
...
...
c40939228.lua
View file @
b5261a3a
...
@@ -100,6 +100,11 @@ function c40939228.negtg(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -100,6 +100,11 @@ function c40939228.negtg(e,tp,eg,ep,ev,re,r,rp,chk)
local
g
=
eg
:
Clone
()
+
c
local
g
=
eg
:
Clone
()
+
c
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
g
,
#
g
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
g
,
#
g
,
0
,
0
)
end
end
if
re
:
GetActivateLocation
()
==
LOCATION_GRAVE
then
e
:
SetCategory
(
e
:
GetCategory
()
|
CATEGORY_GRAVE_ACTION
)
else
e
:
SetCategory
(
e
:
GetCategory
()
&~
CATEGORY_GRAVE_ACTION
)
end
end
end
function
c40939228
.
negop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c40939228
.
negop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
...
...
c51849216.lua
View file @
b5261a3a
...
@@ -7,7 +7,7 @@ function c51849216.initial_effect(c)
...
@@ -7,7 +7,7 @@ function c51849216.initial_effect(c)
e1
:
SetCode
(
EVENT_CHAINING
)
e1
:
SetCode
(
EVENT_CHAINING
)
e1
:
SetCountLimit
(
1
,
51849216
+
EFFECT_COUNT_CODE_OATH
)
e1
:
SetCountLimit
(
1
,
51849216
+
EFFECT_COUNT_CODE_OATH
)
e1
:
SetCondition
(
c51849216
.
condition
)
e1
:
SetCondition
(
c51849216
.
condition
)
e1
:
SetTarget
(
c51849216
.
target
)
e1
:
SetTarget
(
aux
.
nbtg
)
e1
:
SetOperation
(
c51849216
.
activate
)
e1
:
SetOperation
(
c51849216
.
activate
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
...
@@ -18,13 +18,6 @@ function c51849216.condition(e,tp,eg,ep,ev,re,r,rp)
...
@@ -18,13 +18,6 @@ function c51849216.condition(e,tp,eg,ep,ev,re,r,rp)
return
ep
==
1
-
tp
and
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
and
Duel
.
IsChainNegatable
(
ev
)
return
ep
==
1
-
tp
and
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
and
Duel
.
IsChainNegatable
(
ev
)
and
Duel
.
IsExistingMatchingCard
(
c51849216
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
and
Duel
.
IsExistingMatchingCard
(
c51849216
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
end
function
c51849216
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
aux
.
nbcon
(
tp
,
re
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_NEGATE
,
eg
,
1
,
0
,
0
)
if
re
:
GetHandler
():
IsRelateToEffect
(
re
)
then
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
eg
,
1
,
0
,
0
)
end
end
function
c51849216
.
atkfilter
(
c
)
function
c51849216
.
atkfilter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x29
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x29
)
end
end
...
...
c55063751.lua
View file @
b5261a3a
...
@@ -29,7 +29,7 @@ function c55063751.initial_effect(c)
...
@@ -29,7 +29,7 @@ function c55063751.initial_effect(c)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetCondition
(
c55063751
.
negcon
)
e3
:
SetCondition
(
c55063751
.
negcon
)
e3
:
SetCost
(
c55063751
.
negcost
)
e3
:
SetCost
(
c55063751
.
negcost
)
e3
:
SetTarget
(
c55063751
.
neg
tg
)
e3
:
SetTarget
(
aux
.
nb
tg
)
e3
:
SetOperation
(
c55063751
.
negop
)
e3
:
SetOperation
(
c55063751
.
negop
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
end
end
...
@@ -63,13 +63,6 @@ function c55063751.negcost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -63,13 +63,6 @@ function c55063751.negcost(e,tp,eg,ep,ev,re,r,rp,chk)
if
chk
==
0
then
return
Duel
.
IsCanRemoveCounter
(
tp
,
1
,
1
,
0x37
,
2
,
REASON_COST
)
end
if
chk
==
0
then
return
Duel
.
IsCanRemoveCounter
(
tp
,
1
,
1
,
0x37
,
2
,
REASON_COST
)
end
Duel
.
RemoveCounter
(
tp
,
1
,
1
,
0x37
,
2
,
REASON_COST
)
Duel
.
RemoveCounter
(
tp
,
1
,
1
,
0x37
,
2
,
REASON_COST
)
end
end
function
c55063751
.
negtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
aux
.
nbcon
(
tp
,
re
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_NEGATE
,
eg
,
1
,
0
,
0
)
if
re
:
GetHandler
():
IsRelateToEffect
(
re
)
then
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
eg
,
1
,
0
,
0
)
end
end
function
c55063751
.
negop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c55063751
.
negop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
NegateActivation
(
ev
)
and
re
:
GetHandler
():
IsRelateToEffect
(
re
)
then
if
Duel
.
NegateActivation
(
ev
)
and
re
:
GetHandler
():
IsRelateToEffect
(
re
)
then
Duel
.
Remove
(
eg
,
POS_FACEUP
,
REASON_EFFECT
)
Duel
.
Remove
(
eg
,
POS_FACEUP
,
REASON_EFFECT
)
...
...
c6182103.lua
View file @
b5261a3a
...
@@ -14,7 +14,7 @@ function c6182103.initial_effect(c)
...
@@ -14,7 +14,7 @@ function c6182103.initial_effect(c)
e1
:
SetCountLimit
(
1
,
6182103
)
e1
:
SetCountLimit
(
1
,
6182103
)
e1
:
SetCondition
(
c6182103
.
negcon
)
e1
:
SetCondition
(
c6182103
.
negcon
)
e1
:
SetCost
(
c6182103
.
negcost
)
e1
:
SetCost
(
c6182103
.
negcost
)
e1
:
SetTarget
(
c6182103
.
neg
tg
)
e1
:
SetTarget
(
aux
.
nb
tg
)
e1
:
SetOperation
(
c6182103
.
negop
)
e1
:
SetOperation
(
c6182103
.
negop
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
--tohand
--tohand
...
@@ -48,13 +48,6 @@ function c6182103.negcost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -48,13 +48,6 @@ function c6182103.negcost(e,tp,eg,ep,ev,re,r,rp,chk)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c6182103
.
cfilter
,
tp
,
LOCATION_GRAVE
+
LOCATION_HAND
+
LOCATION_ONFIELD
,
0
,
1
,
1
,
nil
,
rtype
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c6182103
.
cfilter
,
tp
,
LOCATION_GRAVE
+
LOCATION_HAND
+
LOCATION_ONFIELD
,
0
,
1
,
1
,
nil
,
rtype
)
Duel
.
Remove
(
g
,
POS_FACEUP
,
REASON_COST
)
Duel
.
Remove
(
g
,
POS_FACEUP
,
REASON_COST
)
end
end
function
c6182103
.
negtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
aux
.
nbcon
(
tp
,
re
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_NEGATE
,
eg
,
1
,
0
,
0
)
if
re
:
GetHandler
():
IsRelateToEffect
(
re
)
then
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
eg
,
1
,
0
,
0
)
end
end
function
c6182103
.
negop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c6182103
.
negop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
NegateActivation
(
ev
)
and
re
:
GetHandler
():
IsRelateToEffect
(
re
)
then
if
Duel
.
NegateActivation
(
ev
)
and
re
:
GetHandler
():
IsRelateToEffect
(
re
)
then
Duel
.
Remove
(
eg
,
POS_FACEUP
,
REASON_EFFECT
)
Duel
.
Remove
(
eg
,
POS_FACEUP
,
REASON_EFFECT
)
...
...
c65703851.lua
View file @
b5261a3a
...
@@ -6,7 +6,7 @@ function c65703851.initial_effect(c)
...
@@ -6,7 +6,7 @@ function c65703851.initial_effect(c)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_CHAINING
)
e1
:
SetCode
(
EVENT_CHAINING
)
e1
:
SetCondition
(
c65703851
.
condition
)
e1
:
SetCondition
(
c65703851
.
condition
)
e1
:
SetTarget
(
c65703851
.
target
)
e1
:
SetTarget
(
aux
.
nbtg
)
e1
:
SetOperation
(
c65703851
.
activate
)
e1
:
SetOperation
(
c65703851
.
activate
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
...
@@ -14,13 +14,6 @@ function c65703851.condition(e,tp,eg,ep,ev,re,r,rp)
...
@@ -14,13 +14,6 @@ function c65703851.condition(e,tp,eg,ep,ev,re,r,rp)
local
loc
=
Duel
.
GetChainInfo
(
ev
,
CHAININFO_TRIGGERING_LOCATION
)
local
loc
=
Duel
.
GetChainInfo
(
ev
,
CHAININFO_TRIGGERING_LOCATION
)
return
(
loc
==
LOCATION_HAND
or
loc
==
LOCATION_GRAVE
)
and
re
:
IsActiveType
(
TYPE_MONSTER
)
and
Duel
.
IsChainNegatable
(
ev
)
return
(
loc
==
LOCATION_HAND
or
loc
==
LOCATION_GRAVE
)
and
re
:
IsActiveType
(
TYPE_MONSTER
)
and
Duel
.
IsChainNegatable
(
ev
)
end
end
function
c65703851
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
aux
.
nbcon
(
tp
,
re
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_NEGATE
,
eg
,
1
,
0
,
0
)
if
re
:
GetHandler
():
IsRelateToEffect
(
re
)
then
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
eg
,
1
,
0
,
0
)
end
end
function
c65703851
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c65703851
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
NegateActivation
(
ev
)
and
re
:
GetHandler
():
IsRelateToEffect
(
re
)
then
if
Duel
.
NegateActivation
(
ev
)
and
re
:
GetHandler
():
IsRelateToEffect
(
re
)
then
Duel
.
Remove
(
eg
,
POS_FACEUP
,
REASON_EFFECT
)
Duel
.
Remove
(
eg
,
POS_FACEUP
,
REASON_EFFECT
)
...
...
c703897.lua
View file @
b5261a3a
...
@@ -7,7 +7,7 @@ function c703897.initial_effect(c)
...
@@ -7,7 +7,7 @@ function c703897.initial_effect(c)
e1
:
SetCode
(
EVENT_CHAINING
)
e1
:
SetCode
(
EVENT_CHAINING
)
e1
:
SetCountLimit
(
1
,
703897
)
e1
:
SetCountLimit
(
1
,
703897
)
e1
:
SetCondition
(
c703897
.
condition
)
e1
:
SetCondition
(
c703897
.
condition
)
e1
:
SetTarget
(
c703897
.
target
)
e1
:
SetTarget
(
aux
.
nbtg
)
e1
:
SetOperation
(
c703897
.
activate
)
e1
:
SetOperation
(
c703897
.
activate
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
--to hand
--to hand
...
@@ -33,13 +33,6 @@ function c703897.condition(e,tp,eg,ep,ev,re,r,rp)
...
@@ -33,13 +33,6 @@ function c703897.condition(e,tp,eg,ep,ev,re,r,rp)
return
Duel
.
IsExistingMatchingCard
(
c703897
.
cfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
return
Duel
.
IsExistingMatchingCard
(
c703897
.
cfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
and
Duel
.
IsChainNegatable
(
ev
)
and
(
re
:
IsActiveType
(
TYPE_MONSTER
)
or
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
))
and
Duel
.
IsChainNegatable
(
ev
)
and
(
re
:
IsActiveType
(
TYPE_MONSTER
)
or
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
))
end
end
function
c703897
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
aux
.
nbcon
(
tp
,
re
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_NEGATE
,
eg
,
1
,
0
,
0
)
if
re
:
GetHandler
():
IsRelateToEffect
(
re
)
then
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
eg
,
1
,
0
,
0
)
end
end
function
c703897
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c703897
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
NegateActivation
(
ev
)
and
re
:
GetHandler
():
IsRelateToEffect
(
re
)
then
if
Duel
.
NegateActivation
(
ev
)
and
re
:
GetHandler
():
IsRelateToEffect
(
re
)
then
Duel
.
Remove
(
eg
,
POS_FACEUP
,
REASON_EFFECT
)
Duel
.
Remove
(
eg
,
POS_FACEUP
,
REASON_EFFECT
)
...
...
c72648810.lua
View file @
b5261a3a
...
@@ -7,7 +7,7 @@ function c72648810.initial_effect(c)
...
@@ -7,7 +7,7 @@ function c72648810.initial_effect(c)
e1
:
SetCode
(
EVENT_CHAINING
)
e1
:
SetCode
(
EVENT_CHAINING
)
e1
:
SetProperty
(
EFFECT_FLAG_DAMAGE_STEP
+
EFFECT_FLAG_DAMAGE_CAL
)
e1
:
SetProperty
(
EFFECT_FLAG_DAMAGE_STEP
+
EFFECT_FLAG_DAMAGE_CAL
)
e1
:
SetCondition
(
c72648810
.
condition
)
e1
:
SetCondition
(
c72648810
.
condition
)
e1
:
SetTarget
(
c72648810
.
target
)
e1
:
SetTarget
(
aux
.
nbtg
)
e1
:
SetOperation
(
c72648810
.
activate
)
e1
:
SetOperation
(
c72648810
.
activate
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
...
@@ -18,13 +18,6 @@ function c72648810.condition(e,tp,eg,ep,ev,re,r,rp)
...
@@ -18,13 +18,6 @@ function c72648810.condition(e,tp,eg,ep,ev,re,r,rp)
or
(
atype
==
TYPE_PENDULUM
+
TYPE_SPELL
and
bit
.
band
(
loc
,
LOCATION_PZONE
)
~=
0
and
not
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)))
or
(
atype
==
TYPE_PENDULUM
+
TYPE_SPELL
and
bit
.
band
(
loc
,
LOCATION_PZONE
)
~=
0
and
not
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)))
and
Duel
.
IsChainNegatable
(
ev
)
and
Duel
.
IsChainNegatable
(
ev
)
end
end
function
c72648810
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
aux
.
nbcon
(
tp
,
re
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_NEGATE
,
eg
,
1
,
0
,
0
)
if
re
:
GetHandler
():
IsRelateToEffect
(
re
)
then
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
eg
,
1
,
0
,
0
)
end
end
function
c72648810
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c72648810
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
NegateActivation
(
ev
)
and
re
:
GetHandler
():
IsRelateToEffect
(
re
)
then
if
Duel
.
NegateActivation
(
ev
)
and
re
:
GetHandler
():
IsRelateToEffect
(
re
)
then
Duel
.
Remove
(
eg
,
POS_FACEUP
,
REASON_EFFECT
)
Duel
.
Remove
(
eg
,
POS_FACEUP
,
REASON_EFFECT
)
...
...
c7403341.lua
View file @
b5261a3a
...
@@ -7,7 +7,7 @@ function c7403341.initial_effect(c)
...
@@ -7,7 +7,7 @@ function c7403341.initial_effect(c)
e1
:
SetCode
(
EVENT_CHAINING
)
e1
:
SetCode
(
EVENT_CHAINING
)
e1
:
SetCountLimit
(
1
,
7403341
+
EFFECT_COUNT_CODE_OATH
)
e1
:
SetCountLimit
(
1
,
7403341
+
EFFECT_COUNT_CODE_OATH
)
e1
:
SetCondition
(
c7403341
.
condition
)
e1
:
SetCondition
(
c7403341
.
condition
)
e1
:
SetTarget
(
c7403341
.
target
)
e1
:
SetTarget
(
aux
.
nbtg
)
e1
:
SetOperation
(
c7403341
.
activate
)
e1
:
SetOperation
(
c7403341
.
activate
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
...
@@ -18,13 +18,6 @@ function c7403341.condition(e,tp,eg,ep,ev,re,r,rp)
...
@@ -18,13 +18,6 @@ function c7403341.condition(e,tp,eg,ep,ev,re,r,rp)
return
Duel
.
IsExistingMatchingCard
(
c7403341
.
cfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
return
Duel
.
IsExistingMatchingCard
(
c7403341
.
cfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
and
(
re
:
IsActiveType
(
TYPE_MONSTER
)
or
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
))
and
Duel
.
IsChainNegatable
(
ev
)
and
(
re
:
IsActiveType
(
TYPE_MONSTER
)
or
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
))
and
Duel
.
IsChainNegatable
(
ev
)
end
end
function
c7403341
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
aux
.
nbcon
(
tp
,
re
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_NEGATE
,
eg
,
1
,
0
,
0
)
if
re
:
GetHandler
():
IsRelateToEffect
(
re
)
then
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
eg
,
1
,
0
,
0
)
end
end
function
c7403341
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c7403341
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
re
:
GetHandler
()
local
tc
=
re
:
GetHandler
()
if
Duel
.
NegateActivation
(
ev
)
and
tc
:
IsRelateToEffect
(
re
)
and
Duel
.
Remove
(
eg
,
POS_FACEUP
,
REASON_EFFECT
)
~=
0
and
tc
:
IsLocation
(
LOCATION_REMOVED
)
then
if
Duel
.
NegateActivation
(
ev
)
and
tc
:
IsRelateToEffect
(
re
)
and
Duel
.
Remove
(
eg
,
POS_FACEUP
,
REASON_EFFECT
)
~=
0
and
tc
:
IsLocation
(
LOCATION_REMOVED
)
then
...
...
c75286621.lua
View file @
b5261a3a
...
@@ -14,7 +14,7 @@ function c75286621.initial_effect(c)
...
@@ -14,7 +14,7 @@ function c75286621.initial_effect(c)
e1
:
SetCountLimit
(
1
)
e1
:
SetCountLimit
(
1
)
e1
:
SetCondition
(
c75286621
.
negcon
)
e1
:
SetCondition
(
c75286621
.
negcon
)
e1
:
SetCost
(
c75286621
.
negcost
)
e1
:
SetCost
(
c75286621
.
negcost
)
e1
:
SetTarget
(
c75286621
.
neg
tg
)
e1
:
SetTarget
(
aux
.
nb
tg
)
e1
:
SetOperation
(
c75286621
.
negop
)
e1
:
SetOperation
(
c75286621
.
negop
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
...
@@ -30,13 +30,6 @@ function c75286621.negcost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -30,13 +30,6 @@ function c75286621.negcost(e,tp,eg,ep,ev,re,r,rp,chk)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c75286621
.
cfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
,
rtype
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c75286621
.
cfilter
,
tp
,
LOCATION_HAND
,
0
,
1
,
nil
,
rtype
)
end
Duel
.
DiscardHand
(
tp
,
c75286621
.
cfilter
,
1
,
1
,
REASON_COST
,
nil
,
rtype
)
Duel
.
DiscardHand
(
tp
,
c75286621
.
cfilter
,
1
,
1
,
REASON_COST
,
nil
,
rtype
)
end
end
function
c75286621
.
negtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
aux
.
nbcon
(
tp
,
re
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_NEGATE
,
eg
,
1
,
0
,
0
)
if
re
:
GetHandler
():
IsRelateToEffect
(
re
)
then
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
eg
,
1
,
0
,
0
)
end
end
function
c75286621
.
negop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c75286621
.
negop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
NegateActivation
(
ev
)
and
re
:
GetHandler
():
IsRelateToEffect
(
re
)
then
if
Duel
.
NegateActivation
(
ev
)
and
re
:
GetHandler
():
IsRelateToEffect
(
re
)
then
Duel
.
Remove
(
eg
,
POS_FACEUP
,
REASON_EFFECT
)
Duel
.
Remove
(
eg
,
POS_FACEUP
,
REASON_EFFECT
)
...
...
c88234821.lua
View file @
b5261a3a
...
@@ -14,7 +14,7 @@ function c88234821.initial_effect(c)
...
@@ -14,7 +14,7 @@ function c88234821.initial_effect(c)
e1
:
SetCountLimit
(
1
,
88234821
)
e1
:
SetCountLimit
(
1
,
88234821
)
e1
:
SetCondition
(
c88234821
.
negcon
)
e1
:
SetCondition
(
c88234821
.
negcon
)
e1
:
SetCost
(
c88234821
.
negcost
)
e1
:
SetCost
(
c88234821
.
negcost
)
e1
:
SetTarget
(
c88234821
.
neg
tg
)
e1
:
SetTarget
(
aux
.
nb
tg
)
e1
:
SetOperation
(
c88234821
.
negop
)
e1
:
SetOperation
(
c88234821
.
negop
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
--remove
--remove
...
@@ -53,13 +53,6 @@ function c88234821.negcost(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -53,13 +53,6 @@ function c88234821.negcost(e,tp,eg,ep,ev,re,r,rp,chk)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c88234821
.
cfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c88234821
.
cfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
)
Duel
.
Remove
(
g
,
POS_FACEUP
,
REASON_COST
)
Duel
.
Remove
(
g
,
POS_FACEUP
,
REASON_COST
)
end
end
function
c88234821
.
negtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
aux
.
nbcon
(
tp
,
re
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_NEGATE
,
eg
,
1
,
0
,
0
)
if
re
:
GetHandler
():
IsRelateToEffect
(
re
)
then
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
eg
,
1
,
0
,
0
)
end
end
function
c88234821
.
negop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c88234821
.
negop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
NegateActivation
(
ev
)
and
re
:
GetHandler
():
IsRelateToEffect
(
re
)
then
if
Duel
.
NegateActivation
(
ev
)
and
re
:
GetHandler
():
IsRelateToEffect
(
re
)
then
Duel
.
Remove
(
eg
,
POS_FACEUP
,
REASON_EFFECT
)
Duel
.
Remove
(
eg
,
POS_FACEUP
,
REASON_EFFECT
)
...
...
c94662235.lua
View file @
b5261a3a
...
@@ -15,7 +15,7 @@ function c94662235.initial_effect(c)
...
@@ -15,7 +15,7 @@ function c94662235.initial_effect(c)
e2
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e2
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e2
:
SetCode
(
EVENT_CHAINING
)
e2
:
SetCode
(
EVENT_CHAINING
)
e2
:
SetCondition
(
c94662235
.
condition2
)
e2
:
SetCondition
(
c94662235
.
condition2
)
e2
:
SetTarget
(
c94662235
.
target2
)
e2
:
SetTarget
(
aux
.
nbtg
)
e2
:
SetOperation
(
c94662235
.
activate2
)
e2
:
SetOperation
(
c94662235
.
activate2
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
end
...
@@ -54,13 +54,6 @@ end
...
@@ -54,13 +54,6 @@ end
function
c94662235
.
condition2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c94662235
.
condition2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
and
Duel
.
IsChainNegatable
(
ev
)
and
c94662235
.
check
(
tp
)
return
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
and
Duel
.
IsChainNegatable
(
ev
)
and
c94662235
.
check
(
tp
)
end
end
function
c94662235
.
target2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
aux
.
nbcon
(
tp
,
re
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_NEGATE
,
eg
,
1
,
0
,
0
)
if
re
:
GetHandler
():
IsRelateToEffect
(
re
)
then
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
eg
,
1
,
0
,
0
)
end
end
function
c94662235
.
activate2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c94662235
.
activate2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
ec
=
eg
:
GetFirst
()
local
ec
=
eg
:
GetFirst
()
if
Duel
.
NegateActivation
(
ev
)
and
ec
:
IsRelateToEffect
(
re
)
then
if
Duel
.
NegateActivation
(
ev
)
and
ec
:
IsRelateToEffect
(
re
)
then
...
...
c99188141.lua
View file @
b5261a3a
...
@@ -6,7 +6,7 @@ function c99188141.initial_effect(c)
...
@@ -6,7 +6,7 @@ function c99188141.initial_effect(c)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_CHAINING
)
e1
:
SetCode
(
EVENT_CHAINING
)
e1
:
SetCondition
(
c99188141
.
condition
)
e1
:
SetCondition
(
c99188141
.
condition
)
e1
:
SetTarget
(
c99188141
.
target
)
e1
:
SetTarget
(
aux
.
nbtg
)
e1
:
SetOperation
(
c99188141
.
activate
)
e1
:
SetOperation
(
c99188141
.
activate
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
end
end
...
@@ -16,13 +16,6 @@ function c99188141.condition(e,tp,eg,ep,ev,re,r,rp)
...
@@ -16,13 +16,6 @@ function c99188141.condition(e,tp,eg,ep,ev,re,r,rp)
local
ex
,
tg
,
tc
=
Duel
.
GetOperationInfo
(
ev
,
CATEGORY_DESTROY
)
local
ex
,
tg
,
tc
=
Duel
.
GetOperationInfo
(
ev
,
CATEGORY_DESTROY
)
return
ex
and
tg
~=
nil
and
tc
+
tg
:
FilterCount
(
Card
.
IsOnField
,
nil
)
-
tg
:
GetCount
()
>
1
return
ex
and
tg
~=
nil
and
tc
+
tg
:
FilterCount
(
Card
.
IsOnField
,
nil
)
-
tg
:
GetCount
()
>
1
end
end
function
c99188141
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
aux
.
nbcon
(
tp
,
re
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_NEGATE
,
eg
,
1
,
0
,
0
)
if
re
:
GetHandler
():
IsRelateToEffect
(
re
)
then
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
eg
,
1
,
0
,
0
)
end
end
function
c99188141
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c99188141
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
NegateActivation
(
ev
)
and
re
:
GetHandler
():
IsRelateToEffect
(
re
)
then
if
Duel
.
NegateActivation
(
ev
)
and
re
:
GetHandler
():
IsRelateToEffect
(
re
)
then
Duel
.
Remove
(
re
:
GetHandler
(),
POS_FACEUP
,
REASON_EFFECT
)
Duel
.
Remove
(
re
:
GetHandler
(),
POS_FACEUP
,
REASON_EFFECT
)
...
...
utility.lua
View file @
b5261a3a
...
@@ -2838,6 +2838,18 @@ function Auxiliary.nbcon(tp,re)
...
@@ -2838,6 +2838,18 @@ function Auxiliary.nbcon(tp,re)
return
Duel
.
IsPlayerCanRemove
(
tp
)
return
Duel
.
IsPlayerCanRemove
(
tp
)
and
(
not
rc
:
IsRelateToEffect
(
re
)
or
rc
:
IsAbleToRemove
())
and
(
not
rc
:
IsRelateToEffect
(
re
)
or
rc
:
IsAbleToRemove
())
end
end
function
Auxiliary
.
nbtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
aux
.
nbcon
(
tp
,
re
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_NEGATE
,
eg
,
1
,
0
,
0
)
if
re
:
GetHandler
():
IsRelateToEffect
(
re
)
then
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
eg
,
1
,
0
,
0
)
end
if
re
:
GetActivateLocation
()
==
LOCATION_GRAVE
then
e
:
SetCategory
(
e
:
GetCategory
()
|
CATEGORY_GRAVE_ACTION
)
else
e
:
SetCategory
(
e
:
GetCategory
()
&~
CATEGORY_GRAVE_ACTION
)
end
end
--condition of "negate activation and return to deck"
--condition of "negate activation and return to deck"
function
Auxiliary
.
ndcon
(
tp
,
re
)
function
Auxiliary
.
ndcon
(
tp
,
re
)
local
rc
=
re
:
GetHandler
()
local
rc
=
re
:
GetHandler
()
...
...
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