Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-2pick
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-2pick
Commits
9dc36ddd
Commit
9dc36ddd
authored
May 16, 2013
by
Fluorohydride
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #510 from sidschingis/master
fix
parents
2e79f68d
b75c4471
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
19 deletions
+20
-19
script/c8323633.lua
script/c8323633.lua
+1
-1
script/c83438826.lua
script/c83438826.lua
+12
-17
script/c83746708.lua
script/c83746708.lua
+7
-1
No files found.
script/c8323633.lua
View file @
9dc36ddd
...
...
@@ -4,7 +4,7 @@ function c8323633.initial_effect(c)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
Set
Target
(
c8323633
.
target
)
e1
:
Set
Operation
(
c8323633
.
target
)
c
:
RegisterEffect
(
e1
)
end
function
c8323633
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
...
...
script/c83438826.lua
View file @
9dc36ddd
...
...
@@ -76,23 +76,18 @@ end
function
c83438826
.
desop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
tc
=
Duel
.
GetFirstTarget
()
if
not
c
:
IsRelateToEffect
(
e
)
or
not
tc
:
IsRelateToEffect
(
e
)
or
tc
:
IsFaceup
()
then
return
end
if
c
:
GetFlagEffect
(
83438826
)
==
0
then
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_EQUIP
)
e1
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e1
:
SetValue
(
-
500
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterFlagEffect
(
83438826
,
RESET_EVENT
+
0x1fe0000
,
0
,
0
)
e
:
SetLabelObject
(
e1
)
e
:
SetLabel
(
2
)
else
local
pe
=
e
:
GetLabelObject
()
local
ct
=
e
:
GetLabel
()
e
:
SetLabel
(
ct
+
1
)
pe
:
SetValue
(
ct
*-
500
)
end
local
eq
=
c
:
GetEquipTarget
()
if
not
c
:
IsRelateToEffect
(
e
)
or
not
tc
:
IsRelateToEffect
(
e
)
or
tc
:
IsFaceup
()
or
not
eq
:
IsAttackAbove
(
500
)
then
return
end
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e1
:
SetValue
(
-
500
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
)
eq
:
RegisterEffect
(
e1
)
Duel
.
Destroy
(
tc
,
REASON_EFFECT
)
end
function
c83438826
.
eqcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
script/c83746708.lua
View file @
9dc36ddd
...
...
@@ -41,6 +41,12 @@ function c83746708.operation(e,tp,eg,ep,ev,re,r,rp)
Duel
.
Equip
(
tp
,
e
:
GetHandler
(),
tc
)
end
end
function
c83746708
.
filter
(
c
)
return
c
:
IsType
(
TYPE_SPELL
)
or
c
:
IsType
(
TYPE_TRAP
)
end
function
c83746708
.
value
(
e
,
c
)
return
Duel
.
GetFieldGroupCount
(
e
:
GetHandler
():
GetControler
(),
LOCATION_SZONE
,
0
)
*
500
local
g
=
Duel
.
GetMatchingGroup
(
c83746708
.
filter
,
tp
,
LOCATION_ONFIELD
,
0
,
nil
)
return
g
:
GetCount
()
*
500
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