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
a4896bde
Commit
a4896bde
authored
Jul 25, 2017
by
VanillaSalt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
4916c325
Changes
12
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
14 additions
and
13 deletions
+14
-13
c14470845.lua
c14470845.lua
+0
-1
c2414168.lua
c2414168.lua
+1
-1
c28593329.lua
c28593329.lua
+1
-1
c39998992.lua
c39998992.lua
+1
-1
c43803845.lua
c43803845.lua
+1
-0
c46083111.lua
c46083111.lua
+2
-2
c5043010.lua
c5043010.lua
+1
-1
c53143898.lua
c53143898.lua
+2
-2
c5560911.lua
c5560911.lua
+1
-1
c6783559.lua
c6783559.lua
+1
-1
c83477829.lua
c83477829.lua
+2
-1
c94626871.lua
c94626871.lua
+1
-1
No files found.
c14470845.lua
View file @
a4896bde
...
...
@@ -69,7 +69,6 @@ function c14470845.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
nil
,
2
,
tp
,
LOCATION_DECK
)
end
function
c14470845
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
local
g
=
Duel
.
GetMatchingGroup
(
c14470845
.
spfilter
,
tp
,
LOCATION_DECK
,
0
,
nil
,
e
,
tp
)
if
not
Duel
.
IsPlayerAffectedByEffect
(
tp
,
59822133
)
and
ft
>
1
and
g
:
GetClassCount
(
Card
.
GetCode
)
>
1
then
...
...
c2414168.lua
View file @
a4896bde
...
...
@@ -49,7 +49,7 @@ function c2414168.defcon(e,tp,eg,ep,ev,re,r,rp)
e
:
SetLabelObject
(
d
)
return
a
:
IsControler
(
1
-
tp
)
and
d
and
d
:
IsDefensePos
()
and
d
:
IsControler
(
tp
)
and
d
~=
e
:
GetHandler
()
end
function
c
44891812
.
defop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c
2414168
.
defop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
tc
=
e
:
GetLabelObject
()
if
tc
:
IsRelateToBattle
()
and
tc
:
IsFaceup
()
and
c
:
IsRelateToEffect
(
e
)
and
c
:
IsFaceup
()
then
...
...
c28593329.lua
View file @
a4896bde
...
...
@@ -26,7 +26,7 @@ function c28593329.cost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
Release
(
at
,
REASON_COST
)
Duel
.
SendtoGrave
(
e
:
GetHandler
(),
REASON_COST
)
end
function
c28593329
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c28593329
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
local
at
=
Duel
.
GetAttackTarget
()
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
tp
)
and
chkc
:
IsFaceup
()
and
chkc
~=
at
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
Card
.
IsFaceup
,
tp
,
LOCATION_MZONE
,
0
,
1
,
at
)
end
...
...
c39998992.lua
View file @
a4896bde
...
...
@@ -9,7 +9,7 @@ function c39998992.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e1
:
SetCode
(
EVENT_LEAVE_FIELD
)
e1
:
SetProperty
(
EFFECT_FLAG_DAMAGE_STEP
+
EFFECT_FLAG_DELAY
)
e1
:
SetProperty
(
EFFECT_FLAG_
CARD_TARGET
+
EFFECT_FLAG_
DAMAGE_STEP
+
EFFECT_FLAG_DELAY
)
e1
:
SetCondition
(
c39998992
.
spcon
)
e1
:
SetTarget
(
c39998992
.
sptg
)
e1
:
SetOperation
(
c39998992
.
spop
)
...
...
c43803845.lua
View file @
a4896bde
...
...
@@ -4,6 +4,7 @@ function c43803845.initial_effect(c)
--cannot be target/effect indestructable
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_SINGLE_RANGE
)
e1
:
SetCode
(
EFFECT_INDESTRUCTABLE_EFFECT
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetCondition
(
aux
.
IsDualState
)
...
...
c46083111.lua
View file @
a4896bde
...
...
@@ -3,9 +3,9 @@ function c46083111.initial_effect(c)
--flip
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
46083111
,
0
))
e1
:
SetCategory
(
CATEGORY_
DESTROY
)
e1
:
SetCategory
(
CATEGORY_
TOGRAVE
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_FLIP
+
EFFECT_TYPE_TRIGGER_O
)
e1
:
SetProperty
(
EFFECT_FLAG_
CARD_TARGET
+
EFFECT_FLAG_
DELAY
)
e1
:
SetProperty
(
EFFECT_FLAG_DELAY
)
e1
:
SetCountLimit
(
1
,
46083111
)
e1
:
SetTarget
(
c46083111
.
tgtg
)
e1
:
SetOperation
(
c46083111
.
tgop
)
...
...
c5043010.lua
View file @
a4896bde
...
...
@@ -33,7 +33,7 @@ function c5043010.initial_effect(c)
e4
:
SetDescription
(
aux
.
Stringid
(
5043010
,
1
))
e4
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e4
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e4
:
SetProperty
(
EFFECT_FLAG_DELAY
+
EFFECT_FLAG_DAMAGE_STEP
)
e4
:
SetProperty
(
EFFECT_FLAG_
SINGLE_RANGE
+
EFFECT_FLAG_
DELAY
+
EFFECT_FLAG_DAMAGE_STEP
)
e4
:
SetCode
(
EVENT_CUSTOM
+
5043010
)
e4
:
SetRange
(
LOCATION_MZONE
)
e4
:
SetTarget
(
c5043010
.
sptg
)
...
...
c53143898.lua
View file @
a4896bde
...
...
@@ -34,10 +34,10 @@ function c53143898.setop(e,tp,eg,ep,ev,re,r,rp)
Duel
.
ConfirmCards
(
1
-
tp
,
g
)
end
end
function
c53143898
.
thfilter1
(
c
,
e
,
tp
)
function
c53143898
.
thfilter1
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x103
)
and
c
:
IsAbleToGrave
()
end
function
c53143898
.
thfilter2
(
c
,
e
,
tp
)
function
c53143898
.
thfilter2
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x103
)
and
c
:
IsAbleToGrave
()
and
c
:
GetSequence
()
<
5
end
function
c53143898
.
spfilter
(
c
,
e
,
tp
)
...
...
c5560911.lua
View file @
a4896bde
...
...
@@ -17,7 +17,7 @@ function c5560911.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if
chk
==
0
then
return
true
end
Duel
.
PayLPCost
(
tp
,
math.floor
(
Duel
.
GetLP
(
tp
)
/
2
))
end
function
c5560911
.
filter
(
c
,
ft
)
function
c5560911
.
filter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsLevelBelow
(
6
)
end
function
c5560911
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
...
...
c6783559.lua
View file @
a4896bde
...
...
@@ -11,7 +11,7 @@ function c6783559.initial_effect(c)
c
:
RegisterEffect
(
e1
)
--damage
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
4485242
9
,
1
))
e2
:
SetDescription
(
aux
.
Stringid
(
678355
9
,
1
))
e2
:
SetCategory
(
CATEGORY_DAMAGE
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_F
)
e2
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
...
...
c83477829.lua
View file @
a4896bde
...
...
@@ -58,13 +58,14 @@ function c83477829.tg(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_TOHAND
,
nil
,
1
,
tp
,
LOCATION_DECK
)
end
function
c83477829
.
op
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_ATOHAND
)
local
tc
=
Duel
.
SelectMatchingCard
(
tp
,
c83477829
.
filter
,
tp
,
LOCATION_DECK
,
0
,
1
,
1
,
nil
):
GetFirst
()
if
tc
then
Duel
.
SendtoHand
(
tc
,
nil
,
REASON_EFFECT
)
Duel
.
ConfirmCards
(
1
-
tp
,
tc
)
end
end
function
c83477829
.
thcon
(
e
)
function
c83477829
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
return
bit
.
band
(
c
:
GetSummonType
(),
SUMMON_TYPE_SPECIAL
)
==
0
end
...
...
c94626871.lua
View file @
a4896bde
...
...
@@ -29,7 +29,7 @@ function c94626871.cfilter(c,tp,zone)
return
c
:
IsPreviousLocation
(
LOCATION_MZONE
)
and
bit
.
extract
(
zone
,
seq
)
~=
0
end
function
c94626871
.
damcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
eg
:
IsExists
(
c94626871
.
cfilter
,
1
,
nil
,
e
:
GetHandler
():
GetLinkedZone
())
return
eg
:
IsExists
(
c94626871
.
cfilter
,
1
,
nil
,
tp
,
e
:
GetHandler
():
GetLinkedZone
())
end
function
c94626871
.
damop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Hint
(
HINT_CARD
,
0
,
94626871
)
...
...
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