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
a3cff50d
Commit
a3cff50d
authored
Jul 18, 2024
by
mercury233
Committed by
GitHub
Jul 18, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix "Negate effect that targets this card on the field" (#2577)
parent
7d3d2a41
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
10 additions
and
2 deletions
+10
-2
c1953925.lua
c1953925.lua
+1
-0
c1995985.lua
c1995985.lua
+1
-0
c42868711.lua
c42868711.lua
+1
-0
c49681811.lua
c49681811.lua
+1
-0
c49868263.lua
c49868263.lua
+2
-1
c62892347.lua
c62892347.lua
+1
-0
c66235877.lua
c66235877.lua
+2
-1
c94568601.lua
c94568601.lua
+1
-0
No files found.
c1953925.lua
View file @
a3cff50d
...
...
@@ -48,6 +48,7 @@ function c1953925.disop(e,tp,eg,ep,ev,re,r,rp)
local
rc
=
re
:
GetHandler
()
if
not
rc
:
IsType
(
TYPE_TRAP
)
then
return
end
if
not
re
:
IsHasProperty
(
EFFECT_FLAG_CARD_TARGET
)
then
return
end
if
not
e
:
GetHandler
():
IsRelateToEffect
(
re
)
then
return
end
local
g
=
Duel
.
GetChainInfo
(
ev
,
CHAININFO_TARGET_CARDS
)
if
g
and
g
:
IsContains
(
e
:
GetHandler
())
then
if
Duel
.
NegateEffect
(
ev
,
true
)
and
rc
:
IsRelateToEffect
(
re
)
then
...
...
c1995985.lua
View file @
a3cff50d
...
...
@@ -36,6 +36,7 @@ c1995985.lvup={74388798}
function
c1995985
.
disop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
not
re
:
GetHandler
():
IsType
(
TYPE_SPELL
)
or
rp
==
tp
then
return
end
if
not
re
:
IsHasProperty
(
EFFECT_FLAG_CARD_TARGET
)
then
return
end
if
not
e
:
GetHandler
():
IsRelateToEffect
(
re
)
then
return
end
local
g
=
Duel
.
GetChainInfo
(
ev
,
CHAININFO_TARGET_CARDS
)
if
g
and
g
:
IsContains
(
e
:
GetHandler
())
then
Duel
.
NegateEffect
(
ev
)
...
...
c42868711.lua
View file @
a3cff50d
...
...
@@ -30,6 +30,7 @@ end
function
c42868711
.
disop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
rp
==
tp
or
not
re
:
IsActiveType
(
TYPE_SPELL
+
TYPE_TRAP
)
then
return
end
if
not
re
:
IsHasProperty
(
EFFECT_FLAG_CARD_TARGET
)
then
return
end
if
not
e
:
GetHandler
():
IsRelateToEffect
(
re
)
then
return
end
local
g
=
Duel
.
GetChainInfo
(
ev
,
CHAININFO_TARGET_CARDS
)
if
not
g
or
g
:
GetCount
()
==
0
then
return
end
if
g
:
IsContains
(
e
:
GetHandler
())
then
...
...
c49681811.lua
View file @
a3cff50d
...
...
@@ -42,6 +42,7 @@ end
function
c49681811
.
disop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
not
re
:
IsActiveType
(
TYPE_SPELL
)
then
return
end
if
not
re
:
IsHasProperty
(
EFFECT_FLAG_CARD_TARGET
)
then
return
end
if
not
e
:
GetHandler
():
IsRelateToEffect
(
re
)
then
return
end
local
g
=
Duel
.
GetChainInfo
(
ev
,
CHAININFO_TARGET_CARDS
)
if
not
g
or
g
:
GetCount
()
==
0
then
return
end
if
g
:
IsContains
(
e
:
GetHandler
())
then
...
...
c49868263.lua
View file @
a3cff50d
...
...
@@ -56,7 +56,8 @@ function c49868263.disop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
NegateEffect
(
ev
)
end
function
c49868263
.
disop2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
re
:
IsActiveType
(
TYPE_SPELL
)
and
re
:
IsHasProperty
(
EFFECT_FLAG_CARD_TARGET
)
then
if
e
:
GetHandler
():
IsRelateToEffect
(
re
)
and
re
:
IsActiveType
(
TYPE_SPELL
)
and
re
:
IsHasProperty
(
EFFECT_FLAG_CARD_TARGET
)
then
local
g
=
Duel
.
GetChainInfo
(
ev
,
CHAININFO_TARGET_CARDS
)
if
g
and
g
:
IsContains
(
e
:
GetHandler
())
then
if
Duel
.
NegateEffect
(
ev
,
true
)
and
re
:
GetHandler
():
IsRelateToEffect
(
re
)
then
...
...
c62892347.lua
View file @
a3cff50d
...
...
@@ -85,6 +85,7 @@ end
function
c62892347
.
disop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
ec
=
e
:
GetHandler
()
if
not
re
:
IsHasProperty
(
EFFECT_FLAG_CARD_TARGET
)
then
return
end
if
not
ec
:
IsRelateToEffect
(
re
)
then
return
end
local
val
=
ec
:
GetFlagEffectLabel
(
36690018
)
if
(
val
==
1
and
rp
==
1
-
ec
:
GetControler
())
or
(
val
==
0
and
rp
==
ec
:
GetControler
())
then
return
end
local
g
=
Duel
.
GetChainInfo
(
ev
,
CHAININFO_TARGET_CARDS
)
...
...
c66235877.lua
View file @
a3cff50d
...
...
@@ -40,7 +40,8 @@ function c66235877.distg(e,c)
end
function
c66235877
.
disop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
re
:
IsActiveType
(
TYPE_FLIP
)
then
Duel
.
NegateEffect
(
ev
)
end
if
re
:
IsActiveType
(
TYPE_TRAP
)
and
re
:
IsHasProperty
(
EFFECT_FLAG_CARD_TARGET
)
then
if
e
:
GetHandler
():
IsRelateToEffect
(
re
)
and
re
:
IsActiveType
(
TYPE_TRAP
)
and
re
:
IsHasProperty
(
EFFECT_FLAG_CARD_TARGET
)
then
local
g
=
Duel
.
GetChainInfo
(
ev
,
CHAININFO_TARGET_CARDS
)
if
g
and
g
:
IsContains
(
e
:
GetHandler
())
then
Duel
.
NegateEffect
(
ev
)
...
...
c94568601.lua
View file @
a3cff50d
...
...
@@ -48,6 +48,7 @@ end
function
c94568601
.
disop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
not
re
:
IsActiveType
(
TYPE_TRAP
)
then
return
end
if
not
re
:
IsHasProperty
(
EFFECT_FLAG_CARD_TARGET
)
then
return
end
if
not
e
:
GetHandler
():
IsRelateToEffect
(
re
)
then
return
end
local
g
=
Duel
.
GetChainInfo
(
ev
,
CHAININFO_TARGET_CARDS
)
if
not
g
or
g
:
GetCount
()
==
0
then
return
end
if
g
:
IsContains
(
e
:
GetHandler
())
then
...
...
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