Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-222DIY-cards
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
Nguyễn Anh Kiệt
ygopro-222DIY-cards
Commits
4992b815
Commit
4992b815
authored
Sep 13, 2021
by
Tachibana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ndyd
parent
35b6f235
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
17 deletions
+12
-17
expansions/script/c33710904.lua
expansions/script/c33710904.lua
+12
-17
No files found.
expansions/script/c33710904.lua
View file @
4992b815
...
...
@@ -27,26 +27,21 @@ function c33710904.tgop(e,tp,eg,ep,ev,re,r,rp)
local
sum
=
(
og
:
GetSum
(
Card
.
GetTextAttack
)
+
og
:
GetSum
(
Card
.
GetTextDefense
))
*
3
if
sum
==
0
then
sum
=
8000
end
Duel
.
SetLP
(
1
-
tp
,
sum
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e1
:
SetCode
(
EFFECT_CANNOT_ACTIVATE
)
e1
:
SetTargetRange
(
0
,
1
)
e1
:
SetValue
(
c33710904
.
aclimit
)
e1
:
SetLabelObject
(
og
)
Duel
.
RegisterEffect
(
e1
,
tp
)
for
tc
in
aux
.
Next
(
og
)
do
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e1
:
SetCode
(
EFFECT_CANNOT_ACTIVATE
)
e1
:
SetTargetRange
(
0
,
1
)
e1
:
SetValue
(
c33710904
.
aclimit
)
e1
:
SetLabel
(
tc
:
GetOriginalCode
())
Duel
.
RegisterEffect
(
e1
,
tp
)
end
end
end
end
function
c33710904
.
aclimit
(
e
,
re
,
tp
)
local
c
=
re
:
GetHandler
()
local
tg
=
e
:
GetLabelObject
()
local
flag
=
false
if
not
tg
then
return
false
end
local
tc
=
tg
:
GetFirst
()
while
tc
do
flag
=
c
:
IsCode
(
tc
:
GetCode
())
tc
=
tg
:
GetNext
()
end
return
flag
local
code
=
e
:
GetLabel
()
return
c
:
IsCode
(
code
)
end
\ No newline at end of file
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