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
7e380d12
Commit
7e380d12
authored
Oct 22, 2018
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
26ed9396
Changes
12
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
15 additions
and
9 deletions
+15
-9
c4055337.lua
c4055337.lua
+2
-0
c42388271.lua
c42388271.lua
+1
-0
c47171541.lua
c47171541.lua
+2
-0
c59577547.lua
c59577547.lua
+1
-1
c66722103.lua
c66722103.lua
+0
-1
c6990577.lua
c6990577.lua
+2
-2
c78661338.lua
c78661338.lua
+1
-0
c86758915.lua
c86758915.lua
+2
-2
c86784733.lua
c86784733.lua
+1
-0
c87571563.lua
c87571563.lua
+1
-1
c88923963.lua
c88923963.lua
+1
-1
c99115354.lua
c99115354.lua
+1
-1
No files found.
c4055337.lua
View file @
7e380d12
...
@@ -7,6 +7,7 @@ function c4055337.initial_effect(c)
...
@@ -7,6 +7,7 @@ function c4055337.initial_effect(c)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
--atk up
--atk up
local
e2
=
Effect
.
CreateEffect
(
c
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetCategory
(
CATEGORY_ATKCHANGE
+
CATEGORY_TOGRAVE
)
e2
:
SetType
(
EFFECT_TYPE_IGNITION
)
e2
:
SetType
(
EFFECT_TYPE_IGNITION
)
e2
:
SetRange
(
LOCATION_GRAVE
)
e2
:
SetRange
(
LOCATION_GRAVE
)
e2
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e2
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
...
@@ -45,6 +46,7 @@ function c4055337.atktg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
...
@@ -45,6 +46,7 @@ function c4055337.atktg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
and
Duel
.
IsExistingMatchingCard
(
c4055337
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
and
Duel
.
IsExistingMatchingCard
(
c4055337
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FACEUP
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FACEUP
)
Duel
.
SelectTarget
(
tp
,
c4055337
.
tgfilter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
1
,
nil
)
Duel
.
SelectTarget
(
tp
,
c4055337
.
tgfilter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
1
,
nil
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOGRAVE
,
nil
,
1
,
tp
,
LOCATION_DECK
)
end
end
function
c4055337
.
atkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c4055337
.
atkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
...
...
c42388271.lua
View file @
7e380d12
...
@@ -25,6 +25,7 @@ function c42388271.initial_effect(c)
...
@@ -25,6 +25,7 @@ function c42388271.initial_effect(c)
e3
:
SetCategory
(
CATEGORY_TOGRAVE
)
e3
:
SetCategory
(
CATEGORY_TOGRAVE
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e3
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e3
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e3
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetCountLimit
(
1
,
42388272
)
e3
:
SetCountLimit
(
1
,
42388272
)
e3
:
SetCondition
(
c42388271
.
tgcon
)
e3
:
SetCondition
(
c42388271
.
tgcon
)
...
...
c47171541.lua
View file @
7e380d12
...
@@ -5,6 +5,8 @@ function c47171541.initial_effect(c)
...
@@ -5,6 +5,8 @@ function c47171541.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e1
:
SetHintTiming
(
0
,
TIMING_END_PHASE
)
e1
:
SetCountLimit
(
1
,
47171541
+
EFFECT_COUNT_CODE_OATH
)
e1
:
SetCountLimit
(
1
,
47171541
+
EFFECT_COUNT_CODE_OATH
)
e1
:
SetCost
(
c47171541
.
cost
)
e1
:
SetCost
(
c47171541
.
cost
)
e1
:
SetTarget
(
c47171541
.
target
)
e1
:
SetTarget
(
c47171541
.
target
)
...
...
c59577547.lua
View file @
7e380d12
...
@@ -48,7 +48,7 @@ function c59577547.spop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -48,7 +48,7 @@ function c59577547.spop(e,tp,eg,ep,ev,re,r,rp)
end
end
end
end
function
c59577547
.
filter
(
c
,
atk
)
function
c59577547
.
filter
(
c
,
atk
)
return
c
:
IsSetCard
(
0x119
)
and
c
:
GetAttack
()
~=
atk
return
c
:
Is
Type
(
TYPE_MONSTER
)
and
c
:
Is
SetCard
(
0x119
)
and
c
:
GetAttack
()
~=
atk
end
end
function
c59577547
.
atktg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c59577547
.
atktg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
local
c
=
e
:
GetHandler
()
local
c
=
e
:
GetHandler
()
...
...
c66722103.lua
View file @
7e380d12
...
@@ -44,7 +44,6 @@ function c66722103.operation(e,tp,eg,ep,ev,re,r,rp)
...
@@ -44,7 +44,6 @@ function c66722103.operation(e,tp,eg,ep,ev,re,r,rp)
if
Duel
.
NegateActivation
(
ev
)
and
re
:
GetHandler
():
IsRelateToEffect
(
re
)
then
if
Duel
.
NegateActivation
(
ev
)
and
re
:
GetHandler
():
IsRelateToEffect
(
re
)
then
Duel
.
Destroy
(
eg
,
REASON_EFFECT
)
Duel
.
Destroy
(
eg
,
REASON_EFFECT
)
end
end
e
:
GetHandler
():
RegisterFlagEffect
(
44508094
,
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
,
0
,
0
)
end
end
function
c66722103
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c66722103
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
IsPreviousLocation
(
LOCATION_ONFIELD
)
return
e
:
GetHandler
():
IsPreviousLocation
(
LOCATION_ONFIELD
)
...
...
c6990577.lua
View file @
7e380d12
...
@@ -43,12 +43,12 @@ function c6990577.atkop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -43,12 +43,12 @@ function c6990577.atkop(e,tp,eg,ep,ev,re,r,rp)
if
c
:
IsFaceup
()
and
c
:
IsRelateToEffect
(
e
)
then
if
c
:
IsFaceup
()
and
c
:
IsRelateToEffect
(
e
)
then
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_SET_
ATTACK_FINAL
)
e1
:
SetCode
(
EFFECT_SET_
BASE_ATTACK
)
e1
:
SetValue
(
c
:
GetBaseAttack
()
*
2
)
e1
:
SetValue
(
c
:
GetBaseAttack
()
*
2
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_DISABLE
+
RESET_PHASE
+
PHASE_END
,
2
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_DISABLE
+
RESET_PHASE
+
PHASE_END
,
2
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
local
e2
=
e1
:
Clone
()
local
e2
=
e1
:
Clone
()
e2
:
SetCode
(
EFFECT_SET_
DEFENSE_FINAL
)
e2
:
SetCode
(
EFFECT_SET_
BASE_DEFENSE
)
e2
:
SetValue
(
c
:
GetBaseDefense
()
*
2
)
e2
:
SetValue
(
c
:
GetBaseDefense
()
*
2
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
end
end
...
...
c78661338.lua
View file @
7e380d12
...
@@ -7,6 +7,7 @@ function c78661338.initial_effect(c)
...
@@ -7,6 +7,7 @@ function c78661338.initial_effect(c)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e1
:
SetRange
(
LOCATION_HAND
)
e1
:
SetRange
(
LOCATION_HAND
)
e1
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e1
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e1
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e1
:
SetCountLimit
(
1
,
78661338
)
e1
:
SetCountLimit
(
1
,
78661338
)
e1
:
SetCondition
(
c78661338
.
spcon
)
e1
:
SetCondition
(
c78661338
.
spcon
)
e1
:
SetTarget
(
c78661338
.
sptg
)
e1
:
SetTarget
(
c78661338
.
sptg
)
...
...
c86758915.lua
View file @
7e380d12
...
@@ -83,9 +83,9 @@ function c86758915.cfilter(c)
...
@@ -83,9 +83,9 @@ function c86758915.cfilter(c)
return
(
c
:
IsFaceup
()
or
c
:
IsLocation
(
LOCATION_HAND
))
and
c
:
IsSetCard
(
0x117
)
and
not
c
:
IsCode
(
86758915
)
and
c
:
IsAbleToGraveAsCost
()
return
(
c
:
IsFaceup
()
or
c
:
IsLocation
(
LOCATION_HAND
))
and
c
:
IsSetCard
(
0x117
)
and
not
c
:
IsCode
(
86758915
)
and
c
:
IsAbleToGraveAsCost
()
end
end
function
c86758915
.
thcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c86758915
.
thcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c86758915
.
cfilter
,
tp
,
LOCATION_HAND
+
LOCATION_
MZONE
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
c86758915
.
cfilter
,
tp
,
LOCATION_HAND
+
LOCATION_
ONFIELD
,
0
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c86758915
.
cfilter
,
tp
,
LOCATION_HAND
+
LOCATION_
MZONE
,
0
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c86758915
.
cfilter
,
tp
,
LOCATION_HAND
+
LOCATION_
ONFIELD
,
0
,
1
,
1
,
nil
)
Duel
.
SendtoGrave
(
g
,
REASON_COST
)
Duel
.
SendtoGrave
(
g
,
REASON_COST
)
end
end
function
c86758915
.
spfilter
(
c
,
e
,
tp
)
function
c86758915
.
spfilter
(
c
,
e
,
tp
)
...
...
c86784733.lua
View file @
7e380d12
...
@@ -5,6 +5,7 @@ function c86784733.initial_effect(c)
...
@@ -5,6 +5,7 @@ function c86784733.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_UPDATE_LEVEL
)
e1
:
SetCategory
(
CATEGORY_UPDATE_LEVEL
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetType
(
EFFECT_TYPE_IGNITION
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e1
:
SetCountLimit
(
1
)
e1
:
SetCountLimit
(
1
)
e1
:
SetTarget
(
c86784733
.
target
)
e1
:
SetTarget
(
c86784733
.
target
)
e1
:
SetOperation
(
c86784733
.
operation
)
e1
:
SetOperation
(
c86784733
.
operation
)
...
...
c87571563.lua
View file @
7e380d12
...
@@ -4,7 +4,7 @@ function c87571563.initial_effect(c)
...
@@ -4,7 +4,7 @@ function c87571563.initial_effect(c)
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetCountLimit
(
1
,
87571563
)
e1
:
SetCountLimit
(
1
,
87571563
+
EFFECT_COUNT_CODE_OATH
)
e1
:
SetTarget
(
c87571563
.
target
)
e1
:
SetTarget
(
c87571563
.
target
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
--move
--move
...
...
c88923963.lua
View file @
7e380d12
...
@@ -34,7 +34,7 @@ end
...
@@ -34,7 +34,7 @@ end
function
c88923963
.
tkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c88923963
.
tkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
88923964
,
0x107a
,
0x4011
,
1000
,
1000
,
4
,
RACE_WARRIOR
,
ATTRIBUTE_LIGHT
)
then
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
88923964
,
0x107a
,
0x4011
,
1000
,
1000
,
4
,
RACE_WARRIOR
,
ATTRIBUTE_LIGHT
)
then
local
token
=
Duel
.
CreateToken
(
tp
,
88923964
)
local
token
=
Duel
.
CreateToken
(
tp
,
88923964
)
Duel
.
SpecialSummon
(
token
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
_ATTACK
)
Duel
.
SpecialSummon
(
token
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
end
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
...
...
c99115354.lua
View file @
7e380d12
...
@@ -17,7 +17,7 @@ function c99115354.initial_effect(c)
...
@@ -17,7 +17,7 @@ function c99115354.initial_effect(c)
e2
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e2
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e2
:
SetCode
(
EFFECT_CANNOT_ACTIVATE
)
e2
:
SetCode
(
EFFECT_CANNOT_ACTIVATE
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetTargetRange
(
0
,
1
)
e2
:
SetTargetRange
(
1
,
1
)
e2
:
SetValue
(
c99115354
.
actlimit
)
e2
:
SetValue
(
c99115354
.
actlimit
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
--tohand
--tohand
...
...
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