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
4027b452
Commit
4027b452
authored
Sep 30, 2015
by
VanillaSalt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
3e726c8e
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
7 deletions
+8
-7
c42386471.lua
c42386471.lua
+2
-2
c54306223.lua
c54306223.lua
+2
-3
c6691855.lua
c6691855.lua
+3
-2
c94739788.lua
c94739788.lua
+1
-0
No files found.
c42386471.lua
View file @
4027b452
...
@@ -30,7 +30,7 @@ function c42386471.initial_effect(c)
...
@@ -30,7 +30,7 @@ function c42386471.initial_effect(c)
local
e6
=
Effect
.
CreateEffect
(
c
)
local
e6
=
Effect
.
CreateEffect
(
c
)
e6
:
SetDescription
(
aux
.
Stringid
(
42386471
,
0
))
e6
:
SetDescription
(
aux
.
Stringid
(
42386471
,
0
))
e6
:
SetCategory
(
CATEGORY_HANDES
)
e6
:
SetCategory
(
CATEGORY_HANDES
)
e6
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_
F
)
e6
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_
O
)
e6
:
SetCode
(
EVENT_BATTLE_DAMAGE
)
e6
:
SetCode
(
EVENT_BATTLE_DAMAGE
)
e6
:
SetCondition
(
c42386471
.
condition
)
e6
:
SetCondition
(
c42386471
.
condition
)
e6
:
SetTarget
(
c42386471
.
target
)
e6
:
SetTarget
(
c42386471
.
target
)
...
@@ -67,7 +67,7 @@ function c42386471.condition(e,tp,eg,ep,ev,re,r,rp)
...
@@ -67,7 +67,7 @@ function c42386471.condition(e,tp,eg,ep,ev,re,r,rp)
return
ep
~=
tp
return
ep
~=
tp
end
end
function
c42386471
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c42386471
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
if
chk
==
0
then
return
Duel
.
GetFieldGroupCount
(
ep
,
LOCATION_HAND
,
0
)
>
0
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_HANDES
,
nil
,
0
,
1
-
tp
,
1
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_HANDES
,
nil
,
0
,
1
-
tp
,
1
)
end
end
function
c42386471
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c42386471
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
c54306223.lua
View file @
4027b452
...
@@ -27,8 +27,7 @@ function c54306223.initial_effect(c)
...
@@ -27,8 +27,7 @@ function c54306223.initial_effect(c)
local
e4
=
Effect
.
CreateEffect
(
c
)
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetDescription
(
aux
.
Stringid
(
54306223
,
1
))
e4
:
SetDescription
(
aux
.
Stringid
(
54306223
,
1
))
e4
:
SetCategory
(
CATEGORY_DESTROY
)
e4
:
SetCategory
(
CATEGORY_DESTROY
)
e4
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_F
)
e4
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_F
)
e4
:
SetRange
(
LOCATION_FZONE
)
e4
:
SetCode
(
54306223
)
e4
:
SetCode
(
54306223
)
e4
:
SetTarget
(
c54306223
.
destg
)
e4
:
SetTarget
(
c54306223
.
destg
)
e4
:
SetOperation
(
c54306223
.
desop
)
e4
:
SetOperation
(
c54306223
.
desop
)
...
@@ -66,7 +65,7 @@ function c54306223.acop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -66,7 +65,7 @@ function c54306223.acop(e,tp,eg,ep,ev,re,r,rp)
end
end
end
end
if
g
:
GetCount
()
>
0
then
if
g
:
GetCount
()
>
0
then
Duel
.
RaiseEvent
(
e
:
GetHandler
(),
54306223
,
e
,
0
,
0
,
0
,
0
)
Duel
.
Raise
Single
Event
(
e
:
GetHandler
(),
54306223
,
e
,
0
,
0
,
0
,
0
)
end
end
end
end
function
c54306223
.
destg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c54306223
.
destg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
...
...
c6691855.lua
View file @
4027b452
...
@@ -22,7 +22,7 @@ function c6691855.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -22,7 +22,7 @@ function c6691855.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
c6691855
.
filter
(
chkc
)
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
c6691855
.
filter
(
chkc
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c6691855
.
filter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c6691855
.
filter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_EQUIP
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_EQUIP
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c6691855
.
filter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
1
,
nil
)
Duel
.
SelectTarget
(
tp
,
c6691855
.
filter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_EQUIP
,
e
:
GetHandler
(),
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_EQUIP
,
e
:
GetHandler
(),
1
,
0
,
0
)
end
end
function
c6691855
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c6691855
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
@@ -46,6 +46,7 @@ function c6691855.operation(e,tp,eg,ep,ev,re,r,rp)
...
@@ -46,6 +46,7 @@ function c6691855.operation(e,tp,eg,ep,ev,re,r,rp)
e2
:
SetRange
(
LOCATION_SZONE
)
e2
:
SetRange
(
LOCATION_SZONE
)
e2
:
SetCondition
(
c6691855
.
damcon
)
e2
:
SetCondition
(
c6691855
.
damcon
)
e2
:
SetOperation
(
c6691855
.
damop
)
e2
:
SetOperation
(
c6691855
.
damop
)
e2
:
SetReset
(
RESET_EVENT
+
0x1fe0000
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
--Equip limit
--Equip limit
local
e3
=
Effect
.
CreateEffect
(
c
)
local
e3
=
Effect
.
CreateEffect
(
c
)
...
@@ -57,7 +58,7 @@ function c6691855.operation(e,tp,eg,ep,ev,re,r,rp)
...
@@ -57,7 +58,7 @@ function c6691855.operation(e,tp,eg,ep,ev,re,r,rp)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
end
end
end
end
function
c6691855
.
damcon
(
e
)
function
c6691855
.
damcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
eq
=
e
:
GetHandler
():
GetEquipTarget
()
local
eq
=
e
:
GetHandler
():
GetEquipTarget
()
return
eq
:
IsRelateToBattle
()
and
eq
:
IsDefencePos
()
return
eq
:
IsRelateToBattle
()
and
eq
:
IsDefencePos
()
end
end
...
...
c94739788.lua
View file @
4027b452
...
@@ -10,6 +10,7 @@ function c94739788.initial_effect(c)
...
@@ -10,6 +10,7 @@ function c94739788.initial_effect(c)
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetCode
(
EFFECT_REMOVE_BRAINWASHING
)
e2
:
SetCode
(
EFFECT_REMOVE_BRAINWASHING
)
e2
:
SetProperty
(
EFFECT_FLAG_SET_AVAILABLE
)
e2
:
SetRange
(
LOCATION_SZONE
)
e2
:
SetRange
(
LOCATION_SZONE
)
e2
:
SetTargetRange
(
LOCATION_MZONE
,
LOCATION_MZONE
)
e2
:
SetTargetRange
(
LOCATION_MZONE
,
LOCATION_MZONE
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
...
...
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