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
f4adc94e
Commit
f4adc94e
authored
Dec 21, 2023
by
Tang Xinwei
Committed by
GitHub
Dec 21, 2023
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #11 from mallu11/patch-7
Patch 7
parents
5d981ee8
f212b788
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
c71525232.lua
c71525232.lua
+5
-5
No files found.
c71525232.lua
View file @
f4adc94e
...
...
@@ -29,7 +29,7 @@ function c71525232.condition(e,tp,eg,ep,ev,re,r,rp)
end
function
c71525232
.
damfilter
(
c
)
if
c
:
IsFaceup
()
then
return
c
:
GetAttack
(
)
return
math.max
(
c
:
GetTextAttack
(),
0
)
else
return
0
end
end
function
c71525232
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
...
...
@@ -37,12 +37,12 @@ function c71525232.target(e,tp,eg,ep,ev,re,r,rp,chk)
local
g
=
Duel
.
GetMatchingGroup
(
aux
.
TRUE
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
e
:
GetHandler
())
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DESTROY
,
g
,
g
:
GetCount
(),
0
,
0
)
local
mg
,
atk
=
g
:
GetMaxGroup
(
c71525232
.
damfilter
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DAMAGE
,
nil
,
0
,
1
-
tp
,
atk
)
if
atk
>
0
then
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DAMAGE
,
nil
,
0
,
1
-
tp
,
atk
)
end
end
function
c71525232
.
filter
(
c
)
if
c
:
IsPreviousPosition
(
POS_FACEUP
)
then
return
c
:
GetPreviousAttackOnField
()
else
return
0
end
return
math.max
(
c
:
GetTextAttack
(),
0
)
end
function
c71525232
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
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