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
0ebebc9a
Commit
0ebebc9a
authored
Apr 26, 2016
by
VanillaSalt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tweak
parent
6096fc90
Changes
13
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
16 additions
and
12 deletions
+16
-12
c15610297.lua
c15610297.lua
+1
-1
c3775068.lua
c3775068.lua
+1
-1
c40392714.lua
c40392714.lua
+2
-1
c41114306.lua
c41114306.lua
+1
-0
c42237854.lua
c42237854.lua
+1
-2
c4998619.lua
c4998619.lua
+1
-0
c54297661.lua
c54297661.lua
+3
-1
c7198399.lua
c7198399.lua
+0
-1
c77387463.lua
c77387463.lua
+2
-1
c78509901.lua
c78509901.lua
+1
-0
c80560728.lua
c80560728.lua
+0
-1
c82627406.lua
c82627406.lua
+1
-1
c94561645.lua
c94561645.lua
+2
-2
No files found.
c15610297.lua
View file @
0ebebc9a
...
...
@@ -60,7 +60,7 @@ function c15610297.disop(e,tp,eg,ep,ev,re,r,rp)
bc
:
RegisterEffect
(
e2
)
end
end
function
c15610297
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c15610297
.
condition
(
e
)
return
e
:
GetHandler
():
GetCounter
(
0x1038
)
>
0
end
function
c15610297
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
...
...
c3775068.lua
View file @
0ebebc9a
...
...
@@ -80,7 +80,7 @@ end
function
c3775068
.
spfilter
(
c
,
e
,
tp
)
return
c
:
IsSetCard
(
0xe3
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
end
function
c3775068
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c3775068
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_GRAVE
)
and
chkc
:
IsControler
(
tp
)
and
c3775068
.
spfilter
(
chkc
,
e
,
tp
)
end
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingTarget
(
c3775068
.
spfilter
,
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
tp
)
end
...
...
c40392714.lua
View file @
0ebebc9a
...
...
@@ -12,7 +12,7 @@ function c40392714.initial_effect(c)
c
:
RegisterEffect
(
e2
)
--Damage
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetCategory
(
CATEGORY_D
ESTROY
)
e3
:
SetCategory
(
CATEGORY_D
AMAGE
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_F
)
e3
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e3
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
...
...
@@ -39,6 +39,7 @@ function c40392714.spcon(e,c)
and
Duel
.
IsExistingMatchingCard
(
c40392714
.
filter
,
c
:
GetControler
(),
LOCATION_MZONE
,
0
,
1
,
nil
)
end
function
c40392714
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c40392714
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
Duel
.
SendtoGrave
(
g
,
REASON_COST
)
local
e1
=
Effect
.
CreateEffect
(
c
)
...
...
c41114306.lua
View file @
0ebebc9a
...
...
@@ -30,6 +30,7 @@ function c41114306.spcon(e,c)
and
Duel
.
IsExistingMatchingCard
(
c41114306
.
filter
,
c
:
GetControler
(),
LOCATION_MZONE
,
0
,
1
,
nil
)
end
function
c41114306
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c41114306
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
Duel
.
SendtoGrave
(
g
,
REASON_COST
)
local
e1
=
Effect
.
CreateEffect
(
c
)
...
...
c42237854.lua
View file @
0ebebc9a
...
...
@@ -8,7 +8,7 @@ function c42237854.initial_effect(c)
e1
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
)
e1
:
SetTarget
(
c42237854
.
target
)
e1
:
SetOperation
(
c42237854
.
activate
)
c
:
RegisterEffect
(
e1
)
c
:
RegisterEffect
(
e1
)
--atk limit
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
...
...
@@ -75,7 +75,6 @@ function c42237854.activate(e,tp,eg,ep,ev,re,r,rp)
Duel
.
BreakEffect
()
local
tc
=
tg
:
GetFirst
()
while
tc
do
local
atk
=
tc
:
GetTextAttack
()
Duel
.
Equip
(
tp
,
tc
,
c
,
false
,
true
)
tc
:
RegisterFlagEffect
(
42237854
,
RESET_EVENT
+
0x1fe0000
,
0
,
0
)
local
e1
=
Effect
.
CreateEffect
(
c
)
...
...
c4998619.lua
View file @
0ebebc9a
...
...
@@ -42,6 +42,7 @@ function c4998619.spcon(e,c)
and
Duel
.
IsExistingMatchingCard
(
c4998619
.
filter
,
c
:
GetControler
(),
LOCATION_MZONE
,
0
,
3
,
nil
)
end
function
c4998619
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c4998619
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
3
,
3
,
nil
)
Duel
.
SendtoGrave
(
g
,
REASON_COST
)
local
e1
=
Effect
.
CreateEffect
(
c
)
...
...
c54297661.lua
View file @
0ebebc9a
...
...
@@ -13,6 +13,7 @@ function c54297661.initial_effect(c)
end
function
c54297661
.
cost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsExistingMatchingCard
(
Card
.
IsAbleToRemoveAsCost
,
tp
,
LOCATION_MZONE
,
0
,
2
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_REMOVE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
Card
.
IsAbleToRemoveAsCost
,
tp
,
LOCATION_MZONE
,
0
,
2
,
2
,
nil
)
Duel
.
Remove
(
g
,
POS_FACEUP
,
REASON_COST
)
end
...
...
@@ -20,7 +21,8 @@ function c54297661.filter(c,tp)
return
c
:
IsFaceup
()
and
Duel
.
IsPlayerCanSpecialSummonMonster
(
tp
,
54297661
,
0
,
0x21
,
c
:
GetAttack
(),
c
:
GetDefence
(),
4
,
RACE_SPELLCASTER
,
ATTRIBUTE_DARK
)
end
function
c54297661
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c54297661
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
chkc
:
IsControler
(
1
-
tp
)
and
c54297661
.
filter
(
chkc
,
tp
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c54297661
.
filter
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
,
tp
)
and
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TARGET
)
...
...
c7198399.lua
View file @
0ebebc9a
...
...
@@ -18,7 +18,6 @@ function c7198399.initial_effect(c)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e2
:
SetProperty
(
EFFECT_FLAG_CARD_TARGET
+
EFFECT_FLAG_DELAY
)
e2
:
SetCode
(
EVENT_BE_BATTLE_TARGET
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetCountLimit
(
1
)
e2
:
SetTarget
(
c7198399
.
sptg
)
e2
:
SetOperation
(
c7198399
.
spop
)
...
...
c77387463.lua
View file @
0ebebc9a
...
...
@@ -12,7 +12,7 @@ function c77387463.initial_effect(c)
c
:
RegisterEffect
(
e2
)
--Damage
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetCategory
(
CATEGORY_D
ESTROY
)
e3
:
SetCategory
(
CATEGORY_D
AMAGE
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_F
)
e3
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e3
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
...
...
@@ -39,6 +39,7 @@ function c77387463.spcon(e,c)
and
Duel
.
IsExistingMatchingCard
(
c77387463
.
filter
,
c
:
GetControler
(),
LOCATION_MZONE
,
0
,
2
,
nil
)
end
function
c77387463
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c77387463
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
2
,
2
,
nil
)
Duel
.
SendtoGrave
(
g
,
REASON_COST
)
local
e1
=
Effect
.
CreateEffect
(
c
)
...
...
c78509901.lua
View file @
0ebebc9a
...
...
@@ -36,6 +36,7 @@ function c78509901.spcon(e,c)
and
Duel
.
IsExistingMatchingCard
(
c78509901
.
filter
,
c
:
GetControler
(),
LOCATION_MZONE
,
0
,
2
,
nil
)
end
function
c78509901
.
spop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
c
)
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TOGRAVE
)
local
g
=
Duel
.
SelectMatchingCard
(
tp
,
c78509901
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
2
,
2
,
nil
)
Duel
.
SendtoGrave
(
g
,
REASON_COST
)
local
e1
=
Effect
.
CreateEffect
(
c
)
...
...
c80560728.lua
View file @
0ebebc9a
...
...
@@ -19,7 +19,6 @@ function c80560728.initial_effect(c)
--mulit attack
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetDescription
(
aux
.
Stringid
(
80560728
,
0
))
e3
:
SetCategory
(
CATEGORY_DAMAGE
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e3
:
SetCode
(
EVENT_DAMAGE_STEP_END
)
e3
:
SetRange
(
LOCATION_SZONE
)
...
...
c82627406.lua
View file @
0ebebc9a
...
...
@@ -46,7 +46,7 @@ end
function
c82627406
.
ctfilter
(
c
)
return
(
c
:
IsLocation
(
LOCATION_GRAVE
)
or
c
:
IsFaceup
())
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsSetCard
(
0x20a2
)
end
function
c82627406
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
function
c82627406
.
operation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tg
=
Duel
.
GetMatchingGroup
(
c82627406
.
atkfilter
,
tp
,
LOCATION_MZONE
,
0
,
nil
)
local
g
=
Duel
.
GetMatchingGroup
(
c82627406
.
ctfilter
,
tp
,
LOCATION_MZONE
+
LOCATION_GRAVE
,
LOCATION_MZONE
+
LOCATION_GRAVE
,
nil
)
if
tg
:
GetCount
()
>
0
and
g
:
GetCount
()
>
0
then
...
...
c94561645.lua
View file @
0ebebc9a
...
...
@@ -13,14 +13,14 @@ end
function
c94561645
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetAttacker
():
IsControler
(
1
-
tp
)
and
Duel
.
GetAttackTarget
()
==
nil
end
function
c94561645
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
function
c94561645
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
IsPlayerCanDraw
(
tp
,
1
)
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DRAW
,
nil
,
0
,
tp
,
1
)
end
function
c94561645
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
Duel
.
NegateAttack
()
and
Duel
.
Draw
(
tp
,
1
,
REASON_EFFECT
)
~=
0
then
local
tc
=
Duel
.
GetOperatedGroup
():
GetFirst
()
if
tc
:
IsType
(
TYPE_MONSTER
)
and
tc
:
IsSummonable
(
true
,
nil
)
if
tc
:
IsType
(
TYPE_MONSTER
)
and
tc
:
IsSummonable
(
true
,
nil
)
and
Duel
.
SelectYesNo
(
tp
,
aux
.
Stringid
(
94561645
,
0
))
then
Duel
.
Summon
(
tp
,
tc
,
true
,
nil
)
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