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
7e40b5e5
Commit
7e40b5e5
authored
Nov 18, 2015
by
VanillaSalt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
43a6b6ea
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
42 additions
and
62 deletions
+42
-62
c23603403.lua
c23603403.lua
+1
-1
c47819246.lua
c47819246.lua
+1
-1
c62709239.lua
c62709239.lua
+5
-2
c77462146.lua
c77462146.lua
+2
-2
c84025439.lua
c84025439.lua
+5
-29
c86196216.lua
c86196216.lua
+1
-1
c97219708.lua
c97219708.lua
+26
-25
c99315585.lua
c99315585.lua
+1
-1
No files found.
c23603403.lua
View file @
7e40b5e5
...
...
@@ -63,7 +63,7 @@ function c23603403.valcheck(e,c)
e
:
GetLabelObject
():
SetLabel
(
0
)
end
end
function
c23603403
.
conditi
on
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c23603403
.
atkc
on
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetCurrentPhase
()
~=
PHASE_DAMAGE
or
not
Duel
.
IsDamageCalculated
()
end
function
c23603403
.
atkcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
...
...
c47819246.lua
View file @
7e40b5e5
...
...
@@ -90,7 +90,7 @@ function c47819246.mtop(e,tp,eg,ep,ev,re,r,rp)
e1
:
SetCode
(
EFFECT_EXTRA_ATTACK
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetValue
(
2
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
RESET
_END
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE
_END
)
ec
:
RegisterEffect
(
e1
)
end
end
c62709239.lua
View file @
7e40b5e5
...
...
@@ -62,18 +62,21 @@ function c62709239.spfilter2(c,lv,e,tp)
end
function
c62709239
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
false
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c62709239
.
spfilter1
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
)
end
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
1
and
Duel
.
IsExistingTarget
(
c62709239
.
spfilter1
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g1
=
Duel
.
SelectTarget
(
tp
,
c62709239
.
spfilter1
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
,
e
,
tp
)
local
tc1
=
g1
:
GetFirst
()
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g2
=
Duel
.
SelectTarget
(
tp
,
c62709239
.
spfilter2
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
tc1
,
tc1
:
GetLevel
(),
e
,
tp
)
g1
:
Merge
(
g2
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
g1
,
2
,
0
,
0
)
end
function
c62709239
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
local
tg
=
Duel
.
GetChainInfo
(
0
,
CHAININFO_TARGET_CARDS
)
local
g
=
tg
:
Filter
(
Card
.
IsRelateToEffect
,
nil
,
e
)
if
g
:
GetCount
()
>
0
then
if
ft
>
0
and
g
:
GetCount
()
<=
ft
then
local
tc
=
g
:
GetFirst
()
while
tc
do
Duel
.
SpecialSummonStep
(
tc
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
...
...
c77462146.lua
View file @
7e40b5e5
...
...
@@ -51,14 +51,14 @@ function c77462146.spcon(e,tp,eg,ep,ev,re,r,rp)
end
function
c77462146
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
not
e
:
GetHandler
():
IsStatus
(
STATUS_CHAINING
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
77462146
,
0
,
0x11
,
4
,
0
,
300
,
RACE_WARRIOR
,
ATTRIBUTE_DARK
)
end
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
77462146
,
0
x10db
,
0x11
,
4
,
0
,
300
,
RACE_WARRIOR
,
ATTRIBUTE_DARK
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
end
function
c77462146
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
then
return
end
local
c
=
e
:
GetHandler
()
if
c
:
IsRelateToEffect
(
e
)
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
77462146
,
0
,
0x11
,
4
,
0
,
300
,
RACE_WARRIOR
,
ATTRIBUTE_DARK
)
then
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
77462146
,
0
x10db
,
0x11
,
4
,
0
,
300
,
RACE_WARRIOR
,
ATTRIBUTE_DARK
)
then
c
:
SetStatus
(
STATUS_NO_LEVEL
,
false
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
...
...
c84025439.lua
View file @
7e40b5e5
...
...
@@ -31,14 +31,14 @@ function c84025439.initial_effect(c)
e3
:
SetCode
(
EFFECT_CANNOT_TO_HAND
)
e3
:
SetRange
(
LOCATION_MZONE
)
e3
:
SetTargetRange
(
0
,
LOCATION_DECK
)
e3
:
SetCondition
(
c84025439
.
con1
)
e3
:
SetCondition
(
c84025439
.
drcon
)
c
:
RegisterEffect
(
e3
)
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetType
(
EFFECT_TYPE_FIELD
)
e4
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e4
:
SetRange
(
LOCATION_MZONE
)
e4
:
SetCode
(
EFFECT_CANNOT_DRAW
)
e4
:
SetCondition
(
c84025439
.
con2
)
e4
:
SetCondition
(
c84025439
.
drcon
)
e4
:
SetTargetRange
(
0
,
1
)
c
:
RegisterEffect
(
e4
)
--spsummon
...
...
@@ -50,19 +50,6 @@ function c84025439.initial_effect(c)
e6
:
SetTarget
(
c84025439
.
sptg
)
e6
:
SetOperation
(
c84025439
.
spop
)
c
:
RegisterEffect
(
e6
)
if
not
c84025439
.
global_check
then
c84025439
.
global_check
=
true
local
ge1
=
Effect
.
CreateEffect
(
c
)
ge1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
ge1
:
SetCode
(
EVENT_PREDRAW
)
ge1
:
SetOperation
(
c84025439
.
checkop
)
Duel
.
RegisterEffect
(
ge1
,
0
)
local
ge2
=
Effect
.
CreateEffect
(
c
)
ge2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
ge2
:
SetCode
(
EVENT_DRAW
)
ge2
:
SetOperation
(
c84025439
.
clearop
)
Duel
.
RegisterEffect
(
ge2
,
0
)
end
end
function
c84025439
.
tdcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
GetOverlayGroup
():
GetClassCount
(
Card
.
GetCode
)
>=
2
and
(
Duel
.
GetCurrentPhase
()
==
PHASE_MAIN1
or
Duel
.
GetCurrentPhase
()
==
PHASE_MAIN2
)
...
...
@@ -84,27 +71,16 @@ function c84025439.tdop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
SendtoDeck
(
sg
,
nil
,
2
,
REASON_EFFECT
)
end
end
function
c84025439
.
imcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c84025439
.
imcon
(
e
)
return
e
:
GetHandler
():
GetOverlayGroup
():
GetClassCount
(
Card
.
GetCode
)
>=
4
end
function
c84025439
.
efilter
(
e
,
te
)
return
not
te
:
GetHandler
():
IsSetCard
(
0xdc
)
end
function
c84025439
.
con1
(
e
)
function
c84025439
.
drcon
(
e
)
return
e
:
GetHandler
():
GetOverlayGroup
():
GetClassCount
(
Card
.
GetCode
)
>=
6
end
function
c84025439
.
con2
(
e
)
return
e
:
GetHandler
():
GetOverlayGroup
():
GetClassCount
(
Card
.
GetCode
)
>=
6
and
Duel
.
GetFlagEffect
(
tp
,
84025439
)
==
0
end
function
c84025439
.
checkop
(
e
)
local
p
=
Duel
.
GetTurnPlayer
()
Duel
.
RegisterFlagEffect
(
p
,
84025439
,
RESET_PHASE
+
PHASE_DRAW
,
0
,
1
)
end
function
c84025439
.
clearop
(
e
)
local
p
=
Duel
.
GetTurnPlayer
()
Duel
.
ResetFlagEffect
(
p
,
84025439
)
end
function
c84025439
.
spfilter
(
c
,
e
,
tp
,
tc
)
function
c84025439
.
spfilter
(
c
,
e
,
tp
)
return
c
:
IsSetCard
(
0x20dc
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
not
c
:
IsHasEffect
(
EFFECT_NECRO_VALLEY
)
end
function
c84025439
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
...
...
c86196216.lua
View file @
7e40b5e5
...
...
@@ -22,7 +22,7 @@ function c86196216.checkop(e,tp,eg,ep,ev,re,r,rp)
local
tc
=
eg
:
GetFirst
()
while
tc
do
if
tc
:
IsSetCard
(
0xba
)
and
tc
:
IsType
(
TYPE_XYZ
)
and
tc
:
IsReason
(
REASON_DESTROY
)
and
tc
:
IsReason
(
REASON_BATTLE
)
then
tc
:
RegisterFlagEffect
(
86196216
,
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
RESET
_END
,
0
,
1
)
tc
:
RegisterFlagEffect
(
86196216
,
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE
_END
,
0
,
1
)
end
tc
=
eg
:
GetNext
()
end
...
...
c97219708.lua
View file @
7e40b5e5
...
...
@@ -58,8 +58,8 @@ function c97219708.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
1
,
tp
,
LOCATION_EXTRA
)
end
function
c97219708
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
<=
0
then
return
end
local
c
=
e
:
GetHandler
()
if
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
then
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c97219708
.
spfilter
,
tp
,
LOCATION_EXTRA
,
0
,
1
,
1
,
nil
,
e
,
tp
)
local
tc
=
g
:
GetFirst
()
...
...
@@ -85,6 +85,7 @@ function c97219708.spop(e,tp,eg,ep,ev,re,r,rp)
tc
:
RegisterEffect
(
e3
)
Duel
.
SpecialSummonComplete
()
end
end
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetType
(
EFFECT_TYPE_FIELD
)
e4
:
SetCode
(
EFFECT_AVOID_BATTLE_DAMAGE
)
...
...
c99315585.lua
View file @
7e40b5e5
...
...
@@ -55,7 +55,7 @@ function c99315585.regop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
RegisterEffect
(
e1
,
tp
)
end
function
c99315585
.
thfilter
(
c
)
return
c
:
IsSetCard
(
0x10db
)
or
(
c
:
IsSetCard
(
0xdb
)
and
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
))
and
c
:
IsAbleToHand
()
return
(
c
:
IsSetCard
(
0x10db
)
or
(
c
:
IsSetCard
(
0xdb
)
and
c
:
IsType
(
TYPE_SPELL
+
TYPE_TRAP
)
))
and
c
:
IsAbleToHand
()
and
not
c
:
IsHasEffect
(
EFFECT_NECRO_VALLEY
)
end
function
c99315585
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
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