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
28fa4ffb
Commit
28fa4ffb
authored
Apr 11, 2016
by
VanillaSalt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
c785a84d
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
11 additions
and
9 deletions
+11
-9
c20073910.lua
c20073910.lua
+1
-1
c31472884.lua
c31472884.lua
+1
-1
c34079868.lua
c34079868.lua
+3
-2
c62180201.lua
c62180201.lua
+1
-1
c69599136.lua
c69599136.lua
+1
-1
c74839123.lua
c74839123.lua
+1
-1
c77625948.lua
c77625948.lua
+1
-0
c7922915.lua
c7922915.lua
+1
-1
c8706701.lua
c8706701.lua
+1
-1
No files found.
c20073910.lua
View file @
28fa4ffb
...
@@ -62,5 +62,5 @@ function c20073910.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -62,5 +62,5 @@ function c20073910.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
end
end
function
c20073910
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c20073910
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsAbleToRemove
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
e
:
GetHandler
())
local
g
=
Duel
.
GetMatchingGroup
(
Card
.
IsAbleToRemove
,
tp
,
LOCATION_ONFIELD
,
LOCATION_ONFIELD
,
e
:
GetHandler
())
Duel
.
Remove
(
g
,
PO
P
_FACEUP
,
REASON_EFFECT
)
Duel
.
Remove
(
g
,
PO
S
_FACEUP
,
REASON_EFFECT
)
end
end
c31472884.lua
View file @
28fa4ffb
...
@@ -32,7 +32,7 @@ function c31472884.condition(e,tp,eg,ep,ev,re,r,rp)
...
@@ -32,7 +32,7 @@ function c31472884.condition(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c31472884
.
cfilter
(
c
)
function
c31472884
.
cfilter
(
c
)
return
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsDiscardable
()
and
c
:
GetAttack
()
>=
0
and
c
:
GetDefence
()
>=
0
return
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsDiscardable
()
and
c
:
GetAttack
()
>=
0
and
c
:
GetDefence
()
>=
0
and
Duel
.
IsExistingTarget
(
c31472884
.
tgfilter
,
tp
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
nil
,
c
)
and
Duel
.
IsExistingTarget
(
c31472884
.
tgfilter
,
0
,
LOCATION_MZONE
,
LOCATION_MZONE
,
1
,
nil
,
c
)
end
end
function
c31472884
.
tgfilter
(
c
,
dc
)
function
c31472884
.
tgfilter
(
c
,
dc
)
return
c
:
IsFaceup
()
and
(
c
:
GetAttack
()
~=
dc
:
GetAttack
()
or
c
:
GetDefence
()
~=
dc
:
GetDefence
())
return
c
:
IsFaceup
()
and
(
c
:
GetAttack
()
~=
dc
:
GetAttack
()
or
c
:
GetDefence
()
~=
dc
:
GetDefence
())
...
...
c34079868.lua
View file @
28fa4ffb
...
@@ -77,11 +77,12 @@ function c34079868.disop(e,tp,eg,ep,ev,re,r,rp)
...
@@ -77,11 +77,12 @@ function c34079868.disop(e,tp,eg,ep,ev,re,r,rp)
end
end
end
end
function
c34079868
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c34079868
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
rp
~=
tp
and
e
:
GetHandler
():
GetPreviousControler
()
==
tp
and
c
:
IsPreviousLocation
(
LOCATION_ONFIELD
)
local
c
=
e
:
GetHandler
()
return
rp
~=
tp
and
c
:
GetPreviousControler
()
==
tp
and
c
:
IsPreviousLocation
(
LOCATION_ONFIELD
)
end
end
function
c34079868
.
spfilter1
(
c
,
e
,
tp
)
function
c34079868
.
spfilter1
(
c
,
e
,
tp
)
return
c
:
IsSetCard
(
0xc7
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
return
c
:
IsSetCard
(
0xc7
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
and
Duel
.
IsExistingMatchingCard
(
c34079868
.
spfilter2
,
tp
,
LOCATION_DECK
,
0
,
1
,
c
,
e
,
tp
,
0xda
)
and
Duel
.
IsExistingMatchingCard
(
c34079868
.
spfilter2
,
tp
,
LOCATION_DECK
,
0
,
1
,
c
,
e
,
tp
)
end
end
function
c34079868
.
spfilter2
(
c
,
e
,
tp
)
function
c34079868
.
spfilter2
(
c
,
e
,
tp
)
return
c
:
IsSetCard
(
0xda
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
return
c
:
IsSetCard
(
0xda
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
...
...
c62180201.lua
View file @
28fa4ffb
...
@@ -50,4 +50,4 @@ function c62180201.atkval(e,c)
...
@@ -50,4 +50,4 @@ function c62180201.atkval(e,c)
end
end
function
c62180201
.
defval
(
e
,
c
)
function
c62180201
.
defval
(
e
,
c
)
return
c
:
GetDefence
()
/
2
return
c
:
GetDefence
()
/
2
end
end
\ No newline at end of file
c69599136.lua
View file @
28fa4ffb
...
@@ -20,7 +20,7 @@ function c69599136.filter(c,tp)
...
@@ -20,7 +20,7 @@ function c69599136.filter(c,tp)
end
end
function
c69599136
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c69599136
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
eg
:
IsExists
(
c69599136
.
filter
,
1
,
nil
,
tp
)
end
if
chk
==
0
then
return
eg
:
IsExists
(
c69599136
.
filter
,
1
,
nil
,
tp
)
end
local
g
=
eg
:
Filter
(
c69599136
.
filter
,
1
,
nil
,
tp
)
local
g
=
eg
:
Filter
(
c69599136
.
filter
,
nil
,
tp
)
Duel
.
SetTargetCard
(
g
)
Duel
.
SetTargetCard
(
g
)
end
end
function
c69599136
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c69599136
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
c74839123.lua
View file @
28fa4ffb
...
@@ -40,7 +40,7 @@ function c74839123.filter(c)
...
@@ -40,7 +40,7 @@ function c74839123.filter(c)
return
c
:
IsSetCard
(
0xad
)
and
c
:
IsType
(
TYPE_FUSION
)
and
c
:
IsAbleToExtra
()
return
c
:
IsSetCard
(
0xad
)
and
c
:
IsType
(
TYPE_FUSION
)
and
c
:
IsAbleToExtra
()
end
end
function
c74839123
.
tdtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c74839123
.
tdtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
tp
)
and
c74839123
.
filter
(
chkc
,
e
,
tp
)
end
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
tp
)
and
c74839123
.
filter
(
chkc
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c74839123
.
filter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c74839123
.
filter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TODECK
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c74839123
.
filter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
)
local
g
=
Duel
.
SelectTarget
(
tp
,
c74839123
.
filter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
1
,
nil
)
...
...
c77625948.lua
View file @
28fa4ffb
...
@@ -73,6 +73,7 @@ function c77625948.repval(e,re,r,rp)
...
@@ -73,6 +73,7 @@ function c77625948.repval(e,re,r,rp)
return
bit
.
band
(
r
,
REASON_BATTLE
)
~=
0
return
bit
.
band
(
r
,
REASON_BATTLE
)
~=
0
end
end
function
c77625948
.
atkcon
(
e
)
function
c77625948
.
atkcon
(
e
)
local
tp
=
e
:
GetHandlerPlayer
()
return
Duel
.
GetAttackTarget
()
==
nil
and
Duel
.
GetFieldGroupCount
(
tp
,
0
,
LOCATION_MZONE
)
~=
0
return
Duel
.
GetAttackTarget
()
==
nil
and
Duel
.
GetFieldGroupCount
(
tp
,
0
,
LOCATION_MZONE
)
~=
0
and
e
:
GetHandler
():
GetEffectCount
(
EFFECT_DIRECT_ATTACK
)
==
1
and
e
:
GetHandler
():
GetEffectCount
(
EFFECT_DIRECT_ATTACK
)
==
1
end
end
...
...
c7922915.lua
View file @
28fa4ffb
...
@@ -51,7 +51,7 @@ function c7922915.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -51,7 +51,7 @@ function c7922915.activate(e,tp,eg,ep,ev,re,r,rp)
Duel
.
SpecialSummon
(
g2
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
Duel
.
SpecialSummon
(
g2
,
0
,
tp
,
tp
,
false
,
false
,
POS_FACEUP
)
end
end
end
end
function
c7922915
.
cfilter
(
c
,
e
,
tp
)
function
c7922915
.
cfilter
(
c
)
return
c
:
IsCode
(
46986414
)
and
c
:
IsFaceup
()
return
c
:
IsCode
(
46986414
)
and
c
:
IsFaceup
()
end
end
function
c7922915
.
negcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c7922915
.
negcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
c8706701.lua
View file @
28fa4ffb
...
@@ -54,7 +54,7 @@ function c8706701.cfilter(c,tp)
...
@@ -54,7 +54,7 @@ function c8706701.cfilter(c,tp)
return
c
:
GetSummonType
()
==
SUMMON_TYPE_SYNCHRO
and
c
:
GetSummonPlayer
()
==
tp
return
c
:
GetSummonType
()
==
SUMMON_TYPE_SYNCHRO
and
c
:
GetSummonPlayer
()
==
tp
end
end
function
c8706701
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c8706701
.
thcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
eg
:
IsExists
(
c8706701
.
cfilter
,
1
,
nil
)
and
aux
.
exccon
(
e
)
return
eg
:
IsExists
(
c8706701
.
cfilter
,
1
,
nil
,
tp
)
and
aux
.
exccon
(
e
)
end
end
function
c8706701
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c8706701
.
thtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToHand
()
end
if
chk
==
0
then
return
e
:
GetHandler
():
IsAbleToHand
()
end
...
...
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