Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-scripts
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
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
Commits
419bd2f2
Commit
419bd2f2
authored
May 31, 2016
by
nekrozar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix & update
parent
5bc89858
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
8 deletions
+3
-8
c19508728.lua
c19508728.lua
+3
-8
No files found.
c19508728.lua
View file @
419bd2f2
...
...
@@ -52,23 +52,18 @@ end
function
c19508728
.
atkcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
ec
=
e
:
GetHandler
():
GetEquipTarget
()
local
tc
=
ec
:
GetBattleTarget
()
return
ec
and
tc
and
tc
:
IsFaceup
()
return
ec
and
tc
and
tc
:
IsFaceup
()
and
tc
:
IsControler
(
1
-
tp
)
end
function
c19508728
.
atkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
not
e
:
GetHandler
():
IsRelateToEffect
(
e
)
then
return
end
local
ec
=
e
:
GetHandler
():
GetEquipTarget
()
local
tc
=
ec
:
GetBattleTarget
()
if
ec
and
tc
and
ec
:
IsFaceup
()
and
tc
:
IsFaceup
()
then
local
atk
=
tc
:
GetAttack
()
local
def
=
tc
:
GetDefense
()
local
val
=
math.max
(
tc
:
GetAttack
(),
tc
:
GetDefense
())
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_SET_ATTACK_FINAL
)
if
atk
>=
def
then
e1
:
SetValue
(
atk
+
100
)
else
e1
:
SetValue
(
def
+
100
)
end
e1
:
SetValue
(
val
+
100
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_DAMAGE_CAL
)
ec
:
RegisterEffect
(
e1
)
local
e2
=
e1
:
Clone
()
...
...
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