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
八宫一月
ygopro-scripts
Commits
54e8c9d4
Commit
54e8c9d4
authored
Mar 08, 2017
by
VanillaSalt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
9567ab0b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
7 deletions
+18
-7
c18013090.lua
c18013090.lua
+15
-4
c86871614.lua
c86871614.lua
+3
-3
No files found.
c18013090.lua
View file @
54e8c9d4
...
@@ -6,10 +6,18 @@ function c18013090.initial_effect(c)
...
@@ -6,10 +6,18 @@ function c18013090.initial_effect(c)
--atkup
--atkup
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetCode
(
EVENT_CHAINING
)
e1
:
SetCode
(
EVENT_CHAINING
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetOperation
(
c18013090
.
atop1
)
e1
:
SetCondition
(
c18013090
.
atcon
)
e1
:
SetOperation
(
aux
.
chainreg
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e2
:
SetCode
(
EVENT_CHAIN_SOLVED
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetOperation
(
c18013090
.
atop
)
c
:
RegisterEffect
(
e2
)
--chain attack
--chain attack
local
e3
=
Effect
.
CreateEffect
(
c
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetDescription
(
aux
.
Stringid
(
18013090
,
0
))
e3
:
SetDescription
(
aux
.
Stringid
(
18013090
,
0
))
...
@@ -26,10 +34,13 @@ c18013090.material_setcode=0x1017
...
@@ -26,10 +34,13 @@ c18013090.material_setcode=0x1017
function
c18013090
.
tfilter
(
c
)
function
c18013090
.
tfilter
(
c
)
return
c
:
IsCode
(
96182448
)
or
c
:
IsHasEffect
(
20932152
)
return
c
:
IsCode
(
96182448
)
or
c
:
IsHasEffect
(
20932152
)
end
end
function
c18013090
.
atop1
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c18013090
.
atcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
GetTurnPlayer
()
~=
tp
or
ep
~=
tp
then
return
end
return
ep
==
tp
and
Duel
.
GetTurnPlayer
()
==
tp
if
not
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
or
not
re
:
IsActiveType
(
TYPE_SPELL
)
then
return
end
and
re
:
IsHasType
(
EFFECT_TYPE_ACTIVATE
)
and
re
:
IsActiveType
(
TYPE_SPELL
)
end
function
c18013090
.
atop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
if
c
:
GetFlagEffect
(
1
)
==
0
then
return
end
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e2
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
...
...
c86871614.lua
View file @
54e8c9d4
...
@@ -14,13 +14,13 @@ function c86871614.initial_effect(c)
...
@@ -14,13 +14,13 @@ function c86871614.initial_effect(c)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
end
function
c86871614
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c86871614
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
ec
=
eg
:
GetFirst
()
return
ep
~=
tp
return
ep
~=
tp
end
end
function
c86871614
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c86871614
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
ec
=
eg
:
GetFirst
()
local
ec
=
eg
:
GetFirst
()
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
86871615
,
0
,
0x4011
,
ec
:
GetBaseAttack
(),
ec
:
GetBaseDefense
(),
and
ec
:
GetOriginalLevel
()
>
0
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
86871615
,
0
,
0x4011
,
ec
:
GetBaseAttack
(),
ec
:
GetBaseDefense
(),
ec
:
GetOriginalLevel
(),
ec
:
GetOriginalRace
(),
ec
:
GetOriginalAttribute
())
end
ec
:
GetOriginalLevel
(),
ec
:
GetOriginalRace
(),
ec
:
GetOriginalAttribute
())
end
ec
:
CreateEffectRelation
(
e
)
ec
:
CreateEffectRelation
(
e
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOKEN
,
nil
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOKEN
,
nil
,
1
,
0
,
0
)
...
...
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