Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-scripts-888
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
Vee4
ygopro-scripts-888
Commits
dc60c26a
Commit
dc60c26a
authored
Jul 30, 2022
by
Chrono-Genex
Committed by
GitHub
Jul 30, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix Number 58: Burner Visor (#1930)
parent
46f78776
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
29 deletions
+29
-29
c93108839.lua
c93108839.lua
+29
-29
No files found.
c93108839.lua
View file @
dc60c26a
...
@@ -13,24 +13,33 @@ function c93108839.initial_effect(c)
...
@@ -13,24 +13,33 @@ function c93108839.initial_effect(c)
e1
:
SetTarget
(
c93108839
.
eqtg
)
e1
:
SetTarget
(
c93108839
.
eqtg
)
e1
:
SetOperation
(
c93108839
.
eqop
)
e1
:
SetOperation
(
c93108839
.
eqop
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
--
direct
--
unequip
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_EQUIP
)
e2
:
SetDescription
(
aux
.
Stringid
(
93108839
,
1
))
e2
:
SetCode
(
EFFECT_DIRECT_ATTACK
)
e2
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e2
:
SetType
(
EFFECT_TYPE_IGNITION
)
e2
:
SetRange
(
LOCATION_SZONE
)
e2
:
SetTarget
(
c93108839
.
sptg
)
e2
:
SetOperation
(
c93108839
.
spop
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
--d
amage
--d
irect
local
e3
=
Effect
.
CreateEffect
(
c
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetDescription
(
aux
.
Stringid
(
93108839
,
2
))
e3
:
SetType
(
EFFECT_TYPE_EQUIP
)
e3
:
SetCategory
(
CATEGORY_DAMAGE
)
e3
:
SetCode
(
EFFECT_DIRECT_ATTACK
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e3
:
SetCode
(
EVENT_BATTLE_DAMAGE
)
e3
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e3
:
SetRange
(
LOCATION_SZONE
)
e3
:
SetCondition
(
c93108839
.
damcon
)
e3
:
SetCost
(
c93108839
.
damcost
)
e3
:
SetTarget
(
c93108839
.
damtg
)
e3
:
SetOperation
(
c93108839
.
damop
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
--damage
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetDescription
(
aux
.
Stringid
(
93108839
,
2
))
e4
:
SetCategory
(
CATEGORY_DAMAGE
)
e4
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e4
:
SetCode
(
EVENT_BATTLE_DAMAGE
)
e4
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e4
:
SetRange
(
LOCATION_SZONE
)
e4
:
SetCondition
(
c93108839
.
damcon
)
e4
:
SetCost
(
c93108839
.
damcost
)
e4
:
SetTarget
(
c93108839
.
damtg
)
e4
:
SetOperation
(
c93108839
.
damop
)
c
:
RegisterEffect
(
e4
)
end
end
aux
.
xyz_number
[
93108839
]
=
58
aux
.
xyz_number
[
93108839
]
=
58
function
c93108839
.
filter
(
c
)
function
c93108839
.
filter
(
c
)
...
@@ -54,16 +63,6 @@ function c93108839.eqop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -54,16 +63,6 @@ function c93108839.eqop(e,tp,eg,ep,ev,re,r,rp)
return
return
end
end
if
not
Duel
.
Equip
(
tp
,
c
,
tc
,
false
)
then
return
end
if
not
Duel
.
Equip
(
tp
,
c
,
tc
,
false
)
then
return
end
--unequip
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
93108839
,
1
))
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_SZONE
)
e1
:
SetTarget
(
c93108839
.
sptg
)
e1
:
SetOperation
(
c93108839
.
spop
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
)
c
:
RegisterEffect
(
e1
)
--eqlimit
--eqlimit
local
e4
=
Effect
.
CreateEffect
(
c
)
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetType
(
EFFECT_TYPE_SINGLE
)
e4
:
SetType
(
EFFECT_TYPE_SINGLE
)
...
@@ -78,15 +77,16 @@ function c93108839.eqlimit(e,c)
...
@@ -78,15 +77,16 @@ function c93108839.eqlimit(e,c)
return
c
==
e
:
GetLabelObject
()
return
c
==
e
:
GetLabelObject
()
end
end
function
c93108839
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c93108839
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
GetFlagEffect
(
93108839
)
==
0
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
local
c
=
e
:
GetHandler
()
and
e
:
GetHandler
():
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
true
,
false
,
POS_FACEUP_ATTACK
)
end
if
chk
==
0
then
return
c
:
GetFlagEffect
(
93108839
)
==
0
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
and
c
:
GetEquipTarget
()
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
,
POS_FACEUP_ATTACK
)
end
e
:
GetHandler
():
RegisterFlagEffect
(
93108839
,
RESET_EVENT
+
0x7e0000
+
RESET_PHASE
+
PHASE_END
,
0
,
1
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
c
,
1
,
0
,
0
)
c
:
RegisterFlagEffect
(
93108839
,
RESET_EVENT
+
0x7e0000
+
RESET_PHASE
+
PHASE_END
,
0
,
1
)
end
end
function
c93108839
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c93108839
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
if
not
c
:
IsRelateToEffect
(
e
)
then
return
end
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
tru
e
,
false
,
POS_FACEUP_ATTACK
)
Duel
.
SpecialSummon
(
c
,
0
,
tp
,
tp
,
fals
e
,
false
,
POS_FACEUP_ATTACK
)
end
end
function
c93108839
.
damcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c93108839
.
damcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
ep
~=
tp
and
eg
:
GetFirst
()
==
e
:
GetHandler
():
GetEquipTarget
()
return
ep
~=
tp
and
eg
:
GetFirst
()
==
e
:
GetHandler
():
GetEquipTarget
()
...
...
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