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
4
Merge Requests
4
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
38aeb169
Commit
38aeb169
authored
Jun 30, 2023
by
mercury233
Committed by
GitHub
Jun 30, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix "then inflict damage" cards (#2092)
parent
858fb01b
Changes
9
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
34 additions
and
22 deletions
+34
-22
c13166204.lua
c13166204.lua
+4
-3
c32986898.lua
c32986898.lua
+4
-3
c33776843.lua
c33776843.lua
+5
-4
c40522482.lua
c40522482.lua
+4
-1
c71344451.lua
c71344451.lua
+4
-2
c86750474.lua
c86750474.lua
+4
-2
c88120966.lua
c88120966.lua
+3
-4
c96700602.lua
c96700602.lua
+2
-1
c98643358.lua
c98643358.lua
+4
-2
No files found.
c13166204.lua
View file @
38aeb169
...
@@ -26,11 +26,12 @@ function c13166204.target(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -26,11 +26,12 @@ function c13166204.target(e,tp,eg,ep,ev,re,r,rp,chk)
end
end
function
c13166204
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c13166204
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
NegateEffect
(
ev
)
and
re
:
GetHandler
():
IsRelateToEffect
(
re
)
and
Duel
.
Destroy
(
re
:
GetHandler
(),
REASON_EFFECT
)
~=
0
then
if
Duel
.
NegateEffect
(
ev
)
and
re
:
GetHandler
():
IsRelateToEffect
(
re
)
and
Duel
.
Destroy
(
re
:
GetHandler
(),
REASON_EFFECT
)
~=
0
then
Duel
.
BreakEffect
()
local
a
=
re
:
GetHandler
():
GetAttack
()
local
a
=
re
:
GetHandler
():
GetAttack
()
local
b
=
re
:
GetHandler
():
GetDefense
()
local
b
=
re
:
GetHandler
():
GetDefense
()
if
b
>
a
then
a
=
b
end
if
b
>
a
then
a
=
b
end
if
a
<
0
then
a
=
0
end
if
a
>
0
then
if
a
>
0
then
Duel
.
Damage
(
1
-
tp
,
a
,
REASON_EFFECT
)
end
Duel
.
BreakEffect
()
Duel
.
Damage
(
1
-
tp
,
a
,
REASON_EFFECT
)
end
end
end
end
end
c32986898.lua
View file @
38aeb169
...
@@ -73,12 +73,13 @@ function c32986898.desop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -73,12 +73,13 @@ function c32986898.desop(e,tp,eg,ep,ev,re,r,rp)
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
then
if
tc
:
IsRelateToEffect
(
e
)
then
if
Duel
.
Destroy
(
tc
,
REASON_EFFECT
)
~=
0
and
e
:
GetHandler
():
GetFlagEffect
(
32986898
)
~=
0
then
if
Duel
.
Destroy
(
tc
,
REASON_EFFECT
)
~=
0
and
e
:
GetHandler
():
GetFlagEffect
(
32986898
)
~=
0
then
Duel
.
BreakEffect
()
local
atk
=
tc
:
GetBaseAttack
()
local
atk
=
tc
:
GetBaseAttack
()
if
atk
<
0
then
atk
=
0
end
if
atk
>
0
then
Duel
.
BreakEffect
()
Duel
.
Damage
(
1
-
tp
,
math.ceil
(
atk
/
2
),
REASON_EFFECT
)
Duel
.
Damage
(
1
-
tp
,
math.ceil
(
atk
/
2
),
REASON_EFFECT
)
end
end
end
end
end
end
end
function
c32986898
.
valcheck
(
e
,
c
)
function
c32986898
.
valcheck
(
e
,
c
)
local
g
=
c
:
GetMaterial
()
local
g
=
c
:
GetMaterial
()
...
...
c33776843.lua
View file @
38aeb169
...
@@ -31,9 +31,10 @@ end
...
@@ -31,9 +31,10 @@ end
function
c33776843
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c33776843
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
and
Duel
.
Destroy
(
tc
,
REASON_EFFECT
)
~=
0
and
tc
:
IsPreviousLocation
(
LOCATION_MZONE
)
then
if
tc
:
IsRelateToEffect
(
e
)
and
Duel
.
Destroy
(
tc
,
REASON_EFFECT
)
~=
0
and
tc
:
IsPreviousLocation
(
LOCATION_MZONE
)
then
local
atk
=
tc
:
Get
Text
Attack
()
local
atk
=
tc
:
Get
Base
Attack
()
if
atk
<
0
then
atk
=
0
end
if
atk
>
0
then
Duel
.
BreakEffect
()
Duel
.
BreakEffect
()
Duel
.
Damage
(
1
-
tp
,
atk
,
REASON_EFFECT
)
Duel
.
Damage
(
1
-
tp
,
atk
,
REASON_EFFECT
)
end
end
end
end
end
c40522482.lua
View file @
38aeb169
...
@@ -51,6 +51,9 @@ function c40522482.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -51,6 +51,9 @@ function c40522482.activate(e,tp,eg,ep,ev,re,r,rp)
else
else
g
,
dam
=
og
:
GetMaxGroup
(
Card
.
GetBaseAttack
)
g
,
dam
=
og
:
GetMaxGroup
(
Card
.
GetBaseAttack
)
end
end
if
dam
>
0
then
Duel
.
BreakEffect
()
Duel
.
Damage
(
1
-
tp
,
dam
,
REASON_EFFECT
)
Duel
.
Damage
(
1
-
tp
,
dam
,
REASON_EFFECT
)
end
end
end
end
end
c71344451.lua
View file @
38aeb169
...
@@ -39,11 +39,13 @@ function c71344451.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -39,11 +39,13 @@ function c71344451.activate(e,tp,eg,ep,ev,re,r,rp)
Duel
.
Destroy
(
sg
,
REASON_EFFECT
)
Duel
.
Destroy
(
sg
,
REASON_EFFECT
)
local
tg
=
Duel
.
GetOperatedGroup
():
Filter
(
Card
.
IsLocation
,
nil
,
LOCATION_GRAVE
)
local
tg
=
Duel
.
GetOperatedGroup
():
Filter
(
Card
.
IsLocation
,
nil
,
LOCATION_GRAVE
)
if
tg
:
GetCount
()
>
0
then
if
tg
:
GetCount
()
>
0
then
Duel
.
BreakEffect
()
local
dam
=
tg
:
GetCount
()
*
2000
local
dam
=
tg
:
GetCount
()
*
2000
if
dam
>
0
then
Duel
.
BreakEffect
()
Duel
.
Damage
(
1
-
tp
,
dam
,
REASON_EFFECT
)
Duel
.
Damage
(
1
-
tp
,
dam
,
REASON_EFFECT
)
end
end
end
end
end
else
else
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
local
dg
=
Duel
.
SelectMatchingCard
(
tp
,
aux
.
NecroValleyFilter
(
Card
.
IsAbleToDeck
),
tp
,
LOCATION_GRAVE
,
0
,
ct2
,
ct2
,
nil
)
local
dg
=
Duel
.
SelectMatchingCard
(
tp
,
aux
.
NecroValleyFilter
(
Card
.
IsAbleToDeck
),
tp
,
LOCATION_GRAVE
,
0
,
ct2
,
ct2
,
nil
)
...
...
c86750474.lua
View file @
38aeb169
...
@@ -56,8 +56,10 @@ function c86750474.damop2(e,tp,eg,ep,ev,re,r,rp)
...
@@ -56,8 +56,10 @@ function c86750474.damop2(e,tp,eg,ep,ev,re,r,rp)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c86750474
.
damfilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
1
,
nil
,
e
,
tp
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c86750474
.
damfilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
1
,
nil
,
e
,
tp
)
if
g
:
GetCount
()
>
0
and
Duel
.
SpecialSummon
(
g
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
~=
0
then
if
g
:
GetCount
()
>
0
and
Duel
.
SpecialSummon
(
g
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
~=
0
then
Duel
.
BreakEffect
()
local
d
=
Duel
.
GetFieldGroupCount
(
1
-
tp
,
LOCATION_ONFIELD
,
0
)
*
200
local
d
=
Duel
.
GetFieldGroupCount
(
1
-
tp
,
LOCATION_ONFIELD
,
0
)
*
200
if
d
>
0
then
Duel
.
BreakEffect
()
Duel
.
Damage
(
1
-
tp
,
d
,
REASON_EFFECT
)
Duel
.
Damage
(
1
-
tp
,
d
,
REASON_EFFECT
)
end
end
end
end
end
c88120966.lua
View file @
38aeb169
...
@@ -40,11 +40,10 @@ function c88120966.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -40,11 +40,10 @@ function c88120966.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
end
end
function
c88120966
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c88120966
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
then
if
tc
:
IsRelateToEffect
(
e
)
and
Duel
.
Destroy
(
tc
,
REASON_EFFECT
)
~=
0
and
tc
:
IsType
(
TYPE_XYZ
)
then
if
Duel
.
Destroy
(
tc
,
REASON_EFFECT
)
~=
0
and
tc
:
IsType
(
TYPE_XYZ
)
then
Duel
.
BreakEffect
()
local
atk
=
tc
:
GetBaseAttack
()
local
atk
=
tc
:
GetBaseAttack
()
if
atk
<
0
then
atk
=
0
end
if
atk
>
0
then
Duel
.
BreakEffect
()
Duel
.
Damage
(
1
-
tp
,
atk
,
REASON_EFFECT
)
Duel
.
Damage
(
1
-
tp
,
atk
,
REASON_EFFECT
)
end
end
end
end
...
...
c96700602.lua
View file @
38aeb169
...
@@ -33,7 +33,8 @@ function c96700602.operation(e,tp,eg,ep,ev,re,r,rp)
...
@@ -33,7 +33,8 @@ function c96700602.operation(e,tp,eg,ep,ev,re,r,rp)
local
tc
=
Duel
.
GetFirstTarget
()
local
tc
=
Duel
.
GetFirstTarget
()
local
g
=
Duel
.
GetMatchingGroup
(
c96700602
.
filter
,
tp
,
0
,
LOCATION_MZONE
,
nil
)
local
g
=
Duel
.
GetMatchingGroup
(
c96700602
.
filter
,
tp
,
0
,
LOCATION_MZONE
,
nil
)
if
Duel
.
ChangePosition
(
g
,
POS_FACEUP_DEFENSE
,
POS_FACEDOWN_DEFENSE
,
0
,
0
)
~=
0
then
if
Duel
.
ChangePosition
(
g
,
POS_FACEUP_DEFENSE
,
POS_FACEDOWN_DEFENSE
,
0
,
0
)
~=
0
then
if
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsFaceup
()
then
if
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsFaceup
()
and
tc
:
GetDefense
()
>
0
then
Duel
.
BreakEffect
()
Duel
.
Damage
(
1
-
tp
,
tc
:
GetDefense
(),
REASON_EFFECT
)
Duel
.
Damage
(
1
-
tp
,
tc
:
GetDefense
(),
REASON_EFFECT
)
end
end
end
end
...
...
c98643358.lua
View file @
38aeb169
...
@@ -25,8 +25,10 @@ end
...
@@ -25,8 +25,10 @@ end
function
c98643358
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c98643358
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetMatchingGroup
(
c98643358
.
filter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
nil
)
local
g
=
Duel
.
GetMatchingGroup
(
c98643358
.
filter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
nil
)
if
Duel
.
Destroy
(
g
,
REASON_EFFECT
)
~=
0
then
if
Duel
.
Destroy
(
g
,
REASON_EFFECT
)
~=
0
then
Duel
.
BreakEffect
()
local
ct
=
Duel
.
GetOperatedGroup
():
FilterCount
(
c98643358
.
ctfilter
,
nil
)
local
ct
=
Duel
.
GetOperatedGroup
():
FilterCount
(
c98643358
.
ctfilter
,
nil
)
if
ct
>
0
then
Duel
.
BreakEffect
()
Duel
.
Damage
(
1
-
tp
,
ct
*
500
,
REASON_EFFECT
)
Duel
.
Damage
(
1
-
tp
,
ct
*
500
,
REASON_EFFECT
)
end
end
end
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