Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro
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
nanahira
ygopro
Commits
288049d7
Commit
288049d7
authored
Jun 03, 2013
by
Fluorohydride
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #546 from sidschingis/patch-4
fix
parents
af97bab9
8e869f13
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
script/c22046459.lua
script/c22046459.lua
+7
-1
No files found.
script/c22046459.lua
View file @
288049d7
...
...
@@ -13,6 +13,7 @@ function c22046459.initial_effect(c)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_EQUIP
)
e2
:
SetCode
(
EFFECT_SET_ATTACK
)
e2
:
SetCondition
(
c22046459
.
condition
)
e2
:
SetValue
(
c22046459
.
value
)
c
:
RegisterEffect
(
e2
)
--Equip limit
...
...
@@ -35,11 +36,16 @@ function c22046459.operation(e,tp,eg,ep,ev,re,r,rp)
Duel
.
Equip
(
tp
,
e
:
GetHandler
(),
tc
)
end
end
function
c22046459
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetLP
(
0
)
~=
Duel
.
GetLP
(
1
)
end
function
c22046459
.
value
(
e
,
c
)
local
p
=
e
:
GetHandler
():
GetControler
()
if
Duel
.
GetLP
(
p
)
<
Duel
.
GetLP
(
1
-
p
)
then
return
c
:
GetBaseAttack
()
*
2
elseif
Duel
.
GetLP
(
p
)
>
Duel
.
GetLP
(
1
-
p
)
then
return
c
:
GetBaseAttack
()
/
2
e
lse
return
c
:
GetAttack
()
e
nd
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