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
040283cf
Commit
040283cf
authored
Jan 17, 2022
by
mercury233
Committed by
GitHub
Jan 17, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix EFFECT_INDESTRUCTABLE_EFFECT of certain reason effect handler (#1786)
parent
5be864c8
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
5 deletions
+24
-5
c72427512.lua
c72427512.lua
+8
-2
c90835938.lua
c90835938.lua
+8
-1
c92015800.lua
c92015800.lua
+8
-2
No files found.
c72427512.lua
View file @
040283cf
...
@@ -53,6 +53,12 @@ function c72427512.desop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -53,6 +53,12 @@ function c72427512.desop(e,tp,eg,ep,ev,re,r,rp)
end
end
end
end
function
c72427512
.
efilter
(
e
,
re
,
rp
)
function
c72427512
.
efilter
(
e
,
re
,
rp
)
local
race
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TRIGGERING_RACE
)
if
not
re
:
IsActiveType
(
TYPE_MONSTER
)
then
return
false
end
return
re
:
IsActiveType
(
TYPE_MONSTER
)
and
e
:
GetHandler
():
IsRace
(
race
)
local
rc
=
re
:
GetHandler
()
if
(
re
:
IsActivated
()
and
rc
:
IsRelateToEffect
(
re
)
or
not
re
:
IsHasProperty
(
EFFECT_FLAG_FIELD_ONLY
))
and
(
rc
:
IsFaceup
()
or
not
rc
:
IsLocation
(
LOCATION_MZONE
))
then
return
e
:
GetHandler
():
IsRace
(
rc
:
GetRace
())
else
return
e
:
GetHandler
():
IsRace
(
rc
:
GetOriginalRace
())
end
end
end
c90835938.lua
View file @
040283cf
...
@@ -59,7 +59,14 @@ function c90835938.indes(e,c)
...
@@ -59,7 +59,14 @@ function c90835938.indes(e,c)
return
c
:
IsAttribute
(
ATTRIBUTE_DARK
)
return
c
:
IsAttribute
(
ATTRIBUTE_DARK
)
end
end
function
c90835938
.
efilter
(
e
,
re
)
function
c90835938
.
efilter
(
e
,
re
)
return
re
:
IsActiveType
(
TYPE_MONSTER
)
and
Duel
.
GetChainInfo
(
0
,
CHAININFO_TRIGGERING_ATTRIBUTE
)
&
ATTRIBUTE_DARK
~=
0
if
not
re
:
IsActiveType
(
TYPE_MONSTER
)
then
return
false
end
local
rc
=
re
:
GetHandler
()
if
(
re
:
IsActivated
()
and
rc
:
IsRelateToEffect
(
re
)
or
not
re
:
IsHasProperty
(
EFFECT_FLAG_FIELD_ONLY
))
and
(
rc
:
IsFaceup
()
or
not
rc
:
IsLocation
(
LOCATION_MZONE
))
then
return
rc
:
IsAttribute
(
ATTRIBUTE_DARK
)
else
return
rc
:
GetOriginalAttribute
()
&
ATTRIBUTE_DARK
~=
0
end
end
end
function
c90835938
.
rmcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c90835938
.
rmcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
...
...
c92015800.lua
View file @
040283cf
...
@@ -59,8 +59,14 @@ end
...
@@ -59,8 +59,14 @@ end
function
c92015800
.
indval1
(
e
,
c
)
function
c92015800
.
indval1
(
e
,
c
)
return
c
:
GetBattleTarget
():
GetAttribute
()
&
c
:
GetAttribute
()
~=
0
return
c
:
GetBattleTarget
():
GetAttribute
()
&
c
:
GetAttribute
()
~=
0
end
end
function
c92015800
.
indval2
(
e
,
te
,
rp
)
function
c92015800
.
indval2
(
e
,
re
,
rp
)
return
rp
==
1
-
e
:
GetHandlerPlayer
()
and
te
:
IsActivated
()
and
te
:
GetHandler
():
GetAttribute
()
&
e
:
GetHandler
():
GetAttribute
()
~=
0
if
not
(
rp
==
1
-
e
:
GetHandlerPlayer
()
and
re
:
IsActivated
()
and
re
:
IsActiveType
(
TYPE_MONSTER
))
then
return
false
end
local
rc
=
re
:
GetHandler
()
if
rc
:
IsRelateToEffect
(
re
)
and
rc
:
IsControler
(
rp
)
and
(
rc
:
IsFaceup
()
or
not
rc
:
IsLocation
(
LOCATION_MZONE
))
then
return
e
:
GetHandler
():
IsAttribute
(
rc
:
GetAttribute
())
else
return
e
:
GetHandler
():
IsAttribute
(
rc
:
GetOriginalAttribute
())
end
end
end
function
c92015800
.
xyzfilter
(
c
)
function
c92015800
.
xyzfilter
(
c
)
return
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsCanOverlay
()
return
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsCanOverlay
()
...
...
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