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
Hide 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)
end
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
Duel
.
BreakEffect
()
local
a
=
re
:
GetHandler
():
GetAttack
()
local
b
=
re
:
GetHandler
():
GetDefense
()
if
b
>
a
then
a
=
b
end
if
a
<
0
then
a
=
0
end
if
a
>
0
then
Duel
.
Damage
(
1
-
tp
,
a
,
REASON_EFFECT
)
end
if
a
>
0
then
Duel
.
BreakEffect
()
Duel
.
Damage
(
1
-
tp
,
a
,
REASON_EFFECT
)
end
end
end
c32986898.lua
View file @
38aeb169
...
...
@@ -73,10 +73,11 @@ function c32986898.desop(e,tp,eg,ep,ev,re,r,rp)
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
then
if
Duel
.
Destroy
(
tc
,
REASON_EFFECT
)
~=
0
and
e
:
GetHandler
():
GetFlagEffect
(
32986898
)
~=
0
then
Duel
.
BreakEffect
()
local
atk
=
tc
:
GetBaseAttack
()
if
atk
<
0
then
atk
=
0
end
Duel
.
Damage
(
1
-
tp
,
math.ceil
(
atk
/
2
),
REASON_EFFECT
)
if
atk
>
0
then
Duel
.
BreakEffect
()
Duel
.
Damage
(
1
-
tp
,
math.ceil
(
atk
/
2
),
REASON_EFFECT
)
end
end
end
end
...
...
c33776843.lua
View file @
38aeb169
...
...
@@ -31,9 +31,10 @@ end
function
c33776843
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
and
Duel
.
Destroy
(
tc
,
REASON_EFFECT
)
~=
0
and
tc
:
IsPreviousLocation
(
LOCATION_MZONE
)
then
local
atk
=
tc
:
GetTextAttack
()
if
atk
<
0
then
atk
=
0
end
Duel
.
BreakEffect
()
Duel
.
Damage
(
1
-
tp
,
atk
,
REASON_EFFECT
)
local
atk
=
tc
:
GetBaseAttack
()
if
atk
>
0
then
Duel
.
BreakEffect
()
Duel
.
Damage
(
1
-
tp
,
atk
,
REASON_EFFECT
)
end
end
end
c40522482.lua
View file @
38aeb169
...
...
@@ -51,6 +51,9 @@ function c40522482.activate(e,tp,eg,ep,ev,re,r,rp)
else
g
,
dam
=
og
:
GetMaxGroup
(
Card
.
GetBaseAttack
)
end
Duel
.
Damage
(
1
-
tp
,
dam
,
REASON_EFFECT
)
if
dam
>
0
then
Duel
.
BreakEffect
()
Duel
.
Damage
(
1
-
tp
,
dam
,
REASON_EFFECT
)
end
end
end
c71344451.lua
View file @
38aeb169
...
...
@@ -39,9 +39,11 @@ function c71344451.activate(e,tp,eg,ep,ev,re,r,rp)
Duel
.
Destroy
(
sg
,
REASON_EFFECT
)
local
tg
=
Duel
.
GetOperatedGroup
():
Filter
(
Card
.
IsLocation
,
nil
,
LOCATION_GRAVE
)
if
tg
:
GetCount
()
>
0
then
Duel
.
BreakEffect
()
local
dam
=
tg
:
GetCount
()
*
2000
Duel
.
Damage
(
1
-
tp
,
dam
,
REASON_EFFECT
)
if
dam
>
0
then
Duel
.
BreakEffect
()
Duel
.
Damage
(
1
-
tp
,
dam
,
REASON_EFFECT
)
end
end
end
else
...
...
c86750474.lua
View file @
38aeb169
...
...
@@ -56,8 +56,10 @@ function c86750474.damop2(e,tp,eg,ep,ev,re,r,rp)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
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
Duel
.
BreakEffect
()
local
d
=
Duel
.
GetFieldGroupCount
(
1
-
tp
,
LOCATION_ONFIELD
,
0
)
*
200
Duel
.
Damage
(
1
-
tp
,
d
,
REASON_EFFECT
)
if
d
>
0
then
Duel
.
BreakEffect
()
Duel
.
Damage
(
1
-
tp
,
d
,
REASON_EFFECT
)
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)
end
function
c88120966
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
then
if
Duel
.
Destroy
(
tc
,
REASON_EFFECT
)
~=
0
and
tc
:
IsType
(
TYPE_XYZ
)
then
if
tc
:
IsRelateToEffect
(
e
)
and
Duel
.
Destroy
(
tc
,
REASON_EFFECT
)
~=
0
and
tc
:
IsType
(
TYPE_XYZ
)
then
local
atk
=
tc
:
GetBaseAttack
()
if
atk
>
0
then
Duel
.
BreakEffect
()
local
atk
=
tc
:
GetBaseAttack
()
if
atk
<
0
then
atk
=
0
end
Duel
.
Damage
(
1
-
tp
,
atk
,
REASON_EFFECT
)
end
end
...
...
c96700602.lua
View file @
38aeb169
...
...
@@ -33,7 +33,8 @@ function c96700602.operation(e,tp,eg,ep,ev,re,r,rp)
local
tc
=
Duel
.
GetFirstTarget
()
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
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
)
end
end
...
...
c98643358.lua
View file @
38aeb169
...
...
@@ -25,8 +25,10 @@ end
function
c98643358
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetMatchingGroup
(
c98643358
.
filter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
nil
)
if
Duel
.
Destroy
(
g
,
REASON_EFFECT
)
~=
0
then
Duel
.
BreakEffect
()
local
ct
=
Duel
.
GetOperatedGroup
():
FilterCount
(
c98643358
.
ctfilter
,
nil
)
Duel
.
Damage
(
1
-
tp
,
ct
*
500
,
REASON_EFFECT
)
if
ct
>
0
then
Duel
.
BreakEffect
()
Duel
.
Damage
(
1
-
tp
,
ct
*
500
,
REASON_EFFECT
)
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