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
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
Reinen
ygopro-scripts
Commits
122a028b
Commit
122a028b
authored
Oct 04, 2017
by
nekrozar
Committed by
mercury233
Oct 04, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
errata&fix (#938)
parent
75aa4cec
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
10 deletions
+8
-10
c67159705.lua
c67159705.lua
+8
-10
No files found.
c67159705.lua
View file @
122a028b
...
...
@@ -16,7 +16,6 @@ function c67159705.initial_effect(c)
e2
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e2
:
SetType
(
EFFECT_TYPE_IGNITION
)
e2
:
SetRange
(
LOCATION_SZONE
)
e2
:
SetCondition
(
aux
.
IsUnionState
)
e2
:
SetTarget
(
c67159705
.
sptg
)
e2
:
SetOperation
(
c67159705
.
spop
)
c
:
RegisterEffect
(
e2
)
...
...
@@ -25,7 +24,6 @@ function c67159705.initial_effect(c)
e3
:
SetType
(
EFFECT_TYPE_EQUIP
)
e3
:
SetProperty
(
EFFECT_FLAG_IGNORE_IMMUNE
)
e3
:
SetCode
(
EFFECT_DESTROY_SUBSTITUTE
)
e3
:
SetCondition
(
aux
.
IsUnionState
)
e3
:
SetValue
(
1
)
c
:
RegisterEffect
(
e3
)
--eqlimit
...
...
@@ -43,20 +41,19 @@ function c67159705.initial_effect(c)
e5
:
SetType
(
EFFECT_TYPE_IGNITION
)
e5
:
SetRange
(
LOCATION_SZONE
)
e5
:
SetCountLimit
(
1
)
e5
:
SetCondition
(
aux
.
IsUnionState
)
e5
:
SetTarget
(
c67159705
.
destg
)
e5
:
SetOperation
(
c67159705
.
desop
)
c
:
RegisterEffect
(
e5
)
end
c67159705
.
old_union
=
true
function
c67159705
.
repval
(
e
,
re
,
r
,
rp
)
return
bit
.
band
(
r
,
REASON_BATTLE
)
~=
0
end
function
c67159705
.
eqlimit
(
e
,
c
)
return
c
:
IsCode
(
70095154
)
or
aux
.
IsMaterialListCode
(
c
,
70095154
)
return
c
:
IsCode
(
70095154
)
or
aux
.
IsMaterialListCode
(
c
,
70095154
)
or
e
:
GetHandler
():
GetEquipTarget
()
==
c
end
function
c67159705
.
filter
(
c
)
return
c
:
IsFaceup
()
and
(
c
:
IsCode
(
70095154
)
or
aux
.
IsMaterialListCode
(
c
,
70095154
))
and
c
:
GetUnionCount
()
==
0
local
ct1
,
ct2
=
c
:
GetUnionCount
()
return
c
:
IsFaceup
()
and
(
c
:
IsCode
(
70095154
)
or
aux
.
IsMaterialListCode
(
c
,
70095154
))
and
ct2
==
0
end
function
c67159705
.
eqtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
tp
)
and
c67159705
.
filter
(
chkc
)
end
...
...
@@ -103,15 +100,16 @@ end
function
c67159705
.
desop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
if
c
:
GetEquipTarget
():
GetAttack
()
<
1000
then
return
end
local
ec
=
c
:
GetEquipTarget
()
if
ec
:
GetAttack
()
<
1000
then
return
end
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_
EQUIP
)
e1
:
SetType
(
EFFECT_TYPE_
SINGLE
)
e1
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e1
:
SetValue
(
-
1000
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
)
c
:
RegisterEffect
(
e1
)
e
c
:
RegisterEffect
(
e1
)
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsFaceup
()
then
if
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsFaceup
()
and
not
ec
:
IsHasEffect
(
EFFECT_REVERSE_UPDATE
)
then
Duel
.
Destroy
(
tc
,
REASON_EFFECT
)
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