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
3368ff1b
Commit
3368ff1b
authored
Nov 18, 2015
by
salix5
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #123 from destdev/patch-1
fix Kozmo Lightsword
parents
5545b134
1fe60acc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
18 deletions
+26
-18
c82270047.lua
c82270047.lua
+26
-18
No files found.
c82270047.lua
View file @
3368ff1b
...
@@ -24,31 +24,36 @@ function c82270047.initial_effect(c)
...
@@ -24,31 +24,36 @@ function c82270047.initial_effect(c)
e4
:
SetCode
(
EFFECT_EXTRA_ATTACK
)
e4
:
SetCode
(
EFFECT_EXTRA_ATTACK
)
e4
:
SetValue
(
1
)
e4
:
SetValue
(
1
)
c
:
RegisterEffect
(
e4
)
c
:
RegisterEffect
(
e4
)
--pierce
local
e5
=
Effect
.
CreateEffect
(
c
)
local
e5
=
Effect
.
CreateEffect
(
c
)
e5
:
SetType
(
EFFECT_TYPE_EQUIP
)
e5
:
SetType
(
EFFECT_TYPE_EQUIP
)
e5
:
SetCode
(
EFFECT_PIERCE
)
e5
:
SetCode
(
EFFECT_CANNOT_DIRECT_ATTACK
)
e5
:
SetCondition
(
c82270047
.
dircon
)
c
:
RegisterEffect
(
e5
)
c
:
RegisterEffect
(
e5
)
--
equip limit
--
pierce
local
e6
=
Effect
.
CreateEffect
(
c
)
local
e6
=
Effect
.
CreateEffect
(
c
)
e6
:
SetType
(
EFFECT_TYPE_SINGLE
)
e6
:
SetType
(
EFFECT_TYPE_EQUIP
)
e6
:
SetCode
(
EFFECT_EQUIP_LIMIT
)
e6
:
SetCode
(
EFFECT_PIERCE
)
e6
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e6
:
SetValue
(
c82270047
.
eqlimit
)
c
:
RegisterEffect
(
e6
)
c
:
RegisterEffect
(
e6
)
--
tohand
--
equip limit
local
e7
=
Effect
.
CreateEffect
(
c
)
local
e7
=
Effect
.
CreateEffect
(
c
)
e7
:
SetDescription
(
aux
.
Stringid
(
82270047
,
0
))
e7
:
SetType
(
EFFECT_TYPE_SINGLE
)
e7
:
SetCategory
(
CATEGORY_TOHAND
)
e7
:
SetCode
(
EFFECT_EQUIP_LIMIT
)
e7
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e7
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e7
:
SetCode
(
EVENT_TO_GRAVE
)
e7
:
SetValue
(
c82270047
.
eqlimit
)
e7
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e7
:
SetCountLimit
(
1
,
82270047
)
e7
:
SetCondition
(
c82270047
.
thcon
)
e7
:
SetCost
(
c82270047
.
thcost
)
e7
:
SetTarget
(
c82270047
.
thtg
)
e7
:
SetOperation
(
c82270047
.
thop
)
c
:
RegisterEffect
(
e7
)
c
:
RegisterEffect
(
e7
)
--tohand
local
e8
=
Effect
.
CreateEffect
(
c
)
e8
:
SetDescription
(
aux
.
Stringid
(
82270047
,
0
))
e8
:
SetCategory
(
CATEGORY_TOHAND
)
e8
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e8
:
SetCode
(
EVENT_TO_GRAVE
)
e8
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e8
:
SetCountLimit
(
1
,
82270047
)
e8
:
SetCondition
(
c82270047
.
thcon
)
e8
:
SetCost
(
c82270047
.
thcost
)
e8
:
SetTarget
(
c82270047
.
thtg
)
e8
:
SetOperation
(
c82270047
.
thop
)
c
:
RegisterEffect
(
e8
)
end
end
function
c82270047
.
eqlimit
(
e
,
c
)
function
c82270047
.
eqlimit
(
e
,
c
)
return
c
:
IsSetCard
(
0xd2
)
and
c
:
IsRace
(
RACE_PSYCHO
)
return
c
:
IsSetCard
(
0xd2
)
and
c
:
IsRace
(
RACE_PSYCHO
)
...
@@ -69,6 +74,9 @@ function c82270047.operation(e,tp,eg,ep,ev,re,r,rp)
...
@@ -69,6 +74,9 @@ function c82270047.operation(e,tp,eg,ep,ev,re,r,rp)
Duel
.
Equip
(
tp
,
e
:
GetHandler
(),
tc
)
Duel
.
Equip
(
tp
,
e
:
GetHandler
(),
tc
)
end
end
end
end
function
c82270047
.
dircon
(
e
)
return
e
:
GetHandler
():
GetEquipTarget
():
GetAttackAnnouncedCount
()
>
0
end
function
c82270047
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c82270047
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
IsPreviousLocation
(
LOCATION_ONFIELD
)
return
e
:
GetHandler
():
IsPreviousLocation
(
LOCATION_ONFIELD
)
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