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
Reinen
ygopro-scripts
Commits
2d0b1f9f
Commit
2d0b1f9f
authored
Dec 27, 2016
by
VanillaSalt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
8b1690f3
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
46 additions
and
22 deletions
+46
-22
c11398951.lua
c11398951.lua
+1
-1
c14735698.lua
c14735698.lua
+1
-1
c45410988.lua
c45410988.lua
+1
-1
c45894482.lua
c45894482.lua
+4
-3
c54297661.lua
c54297661.lua
+2
-2
c73055622.lua
c73055622.lua
+1
-1
c7409792.lua
c7409792.lua
+4
-3
c80033124.lua
c80033124.lua
+1
-1
c8809344.lua
c8809344.lua
+1
-0
c93671934.lua
c93671934.lua
+30
-9
No files found.
c11398951.lua
View file @
2d0b1f9f
...
...
@@ -27,7 +27,7 @@ function c11398951.mfilterf(c,tp,mg,rc)
else
return
false
end
end
function
c11398951
.
mfilter
(
c
)
return
c
:
IsRace
(
RACE_WARRIOR
+
RACE_FAIRY
)
and
c
:
IsAbleToDeck
()
return
c
:
GetLevel
()
>
0
and
c
:
IsRace
(
RACE_WARRIOR
+
RACE_FAIRY
)
and
c
:
IsAbleToDeck
()
end
function
c11398951
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
...
...
c14735698.lua
View file @
2d0b1f9f
...
...
@@ -42,7 +42,7 @@ function c14735698.mfilterf(c,tp,mg,rc)
else
return
false
end
end
function
c14735698
.
mfilter
(
c
)
return
c
:
IsSetCard
(
0xb4
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToRemove
()
return
c
:
GetLevel
()
>
0
and
c
:
IsSetCard
(
0xb4
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToRemove
()
end
function
c14735698
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
...
...
c45410988.lua
View file @
2d0b1f9f
...
...
@@ -27,7 +27,7 @@ function c45410988.mfilterf(c,tp,mg,rc)
else
return
false
end
end
function
c45410988
.
mfilter
(
c
)
return
c
:
IsSetCard
(
0x3b
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToRemove
()
return
c
:
GetLevel
()
>
0
and
c
:
IsSetCard
(
0x3b
)
and
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsAbleToRemove
()
end
function
c45410988
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
...
...
c45894482.lua
View file @
2d0b1f9f
...
...
@@ -32,12 +32,13 @@ function c45894482.spcon(e,c)
return
Duel
.
GetLocationCount
(
c
:
GetControler
(),
LOCATION_MZONE
)
>
0
end
function
c45894482
.
trigop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
e
:
GetHandler
():
GetSummonType
()
==
SUMMON_TYPE_SPECIAL
+
1
local
c
=
e
:
GetHandler
()
if
c
:
GetSummonType
()
==
SUMMON_TYPE_SPECIAL
+
1
and
e
:
GetLabelObject
():
IsActivatable
(
tp
)
and
Duel
.
GetLocationCount
(
1
-
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingTarget
(
c45894482
.
filter
,
1
-
tp
,
LOCATION_GRAVE
,
0
,
1
,
nil
,
e
,
1
-
tp
)
and
Duel
.
Select
YesNo
(
1
-
tp
,
aux
.
Stringid
(
45894482
,
1
)
)
then
Duel
.
RaiseSingleEvent
(
e
:
GetHandler
()
,
EVENT_CUSTOM
+
45894482
,
e
,
r
,
rp
,
tp
,
0
)
and
Duel
.
Select
EffectYesNo
(
1
-
tp
,
c
)
then
Duel
.
RaiseSingleEvent
(
c
,
EVENT_CUSTOM
+
45894482
,
e
,
r
,
rp
,
tp
,
0
)
end
end
function
c45894482
.
filter
(
c
,
e
,
tp
)
...
...
c54297661.lua
View file @
2d0b1f9f
...
...
@@ -23,8 +23,8 @@ function c54297661.filter(c,tp)
end
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
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>-
2
and
Duel
.
IsExistingTarget
(
c54297661
.
filter
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
,
tp
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_TARGET
)
Duel
.
SelectTarget
(
tp
,
c54297661
.
filter
,
tp
,
0
,
LOCATION_MZONE
,
1
,
1
,
nil
,
tp
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
e
:
GetHandler
(),
1
,
0
,
0
)
...
...
c73055622.lua
View file @
2d0b1f9f
...
...
@@ -28,7 +28,7 @@ function c73055622.mfilterf(c,tp,mg,rc)
else
return
false
end
end
function
c73055622
.
mfilter
(
c
)
return
c
:
IsType
(
TYPE_SPIRIT
)
and
c
:
IsAbleToRemove
()
return
c
:
GetLevel
()
>
0
and
c
:
IsType
(
TYPE_SPIRIT
)
and
c
:
IsAbleToRemove
()
end
function
c73055622
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
...
...
c7409792.lua
View file @
2d0b1f9f
...
...
@@ -34,12 +34,13 @@ function c7409792.spcon(e,c)
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
end
function
c7409792
.
trigop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
e
:
GetHandler
():
GetSummonType
()
==
SUMMON_TYPE_SPECIAL
+
1
local
c
=
e
:
GetHandler
()
if
c
:
GetSummonType
()
==
SUMMON_TYPE_SPECIAL
+
1
and
e
:
GetLabelObject
():
IsActivatable
(
tp
)
and
Duel
.
GetLocationCount
(
1
-
tp
,
LOCATION_MZONE
)
>
0
and
Duel
.
IsExistingTarget
(
c7409792
.
filter
,
tp
,
LOCATION_GRAVE
,
LOCATION_GRAVE
,
1
,
nil
,
e
,
tp
)
and
Duel
.
Select
YesNo
(
1
-
tp
,
aux
.
Stringid
(
7409792
,
1
)
)
then
Duel
.
RaiseSingleEvent
(
e
:
GetHandler
()
,
EVENT_CUSTOM
+
7409792
,
e
,
r
,
rp
,
tp
,
0
)
and
Duel
.
Select
EffectYesNo
(
1
-
tp
,
c
)
then
Duel
.
RaiseSingleEvent
(
c
,
EVENT_CUSTOM
+
7409792
,
e
,
r
,
rp
,
tp
,
0
)
end
end
function
c7409792
.
filter
(
c
,
e
,
tp
)
...
...
c80033124.lua
View file @
2d0b1f9f
...
...
@@ -2,7 +2,7 @@
function
c80033124
.
initial_effect
(
c
)
--Activate
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCategory
(
CATEGORY_TODECK
+
CATEGORY_SPECIAL_SUMMON
)
e1
:
SetCategory
(
CATEGORY_TODECK
+
CATEGORY_SPECIAL_SUMMON
+
CATEGORY_FUSION_SUMMON
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetTarget
(
c80033124
.
target
)
...
...
c8809344.lua
View file @
2d0b1f9f
...
...
@@ -61,6 +61,7 @@ function c8809344.operation(e,tp,eg,ep,ev,re,r,rp)
if
og
:
GetCount
()
==
0
then
return
end
Duel
.
SendtoGrave
(
og
,
REASON_EFFECT
)
Duel
.
Overlay
(
c
,
Group
.
FromCards
(
tc
))
if
c
:
IsFacedown
()
then
return
end
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetProperty
(
EFFECT_FLAG_COPY_INHERIT
)
...
...
c93671934.lua
View file @
2d0b1f9f
...
...
@@ -7,35 +7,56 @@ function c93671934.initial_effect(c)
c
:
RegisterEffect
(
e1
)
--recover
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
Set
Type
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e2
:
Set
Range
(
LOCATION_SZONE
)
e2
:
Set
Category
(
CATEGORY_RECOVER
)
e2
:
Set
Type
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_F
)
e2
:
SetCode
(
EVENT_EQUIP
)
e2
:
SetRange
(
LOCATION_SZONE
)
e2
:
SetCondition
(
c93671934
.
reccon
)
e2
:
SetTarget
(
c93671934
.
rectg
)
e2
:
SetOperation
(
c93671934
.
recop
)
c
:
RegisterEffect
(
e2
)
--damage
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
Set
Type
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e3
:
Set
Range
(
LOCATION_SZONE
)
e3
:
Set
Category
(
CATEGORY_DAMAGE
)
e3
:
Set
Type
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_F
)
e3
:
SetCode
(
EVENT_LEAVE_FIELD
)
e3
:
SetRange
(
LOCATION_SZONE
)
e3
:
SetCondition
(
c93671934
.
damcon
)
e3
:
SetTarget
(
c93671934
.
damtg
)
e3
:
SetOperation
(
c93671934
.
damop
)
c
:
RegisterEffect
(
e3
)
end
function
c93671934
.
reccon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
e
:
SetLabel
(
eg
:
GetFirst
():
GetControler
())
return
true
end
function
c93671934
.
rectg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_RECOVER
,
nil
,
0
,
e
:
GetLabel
(),
1000
)
end
function
c93671934
.
recop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
Recover
(
e
g
:
GetFirst
():
GetControler
(),
1000
,
REASON_EFFECT
)
Duel
.
Recover
(
e
:
GetLabel
(),
1000
,
REASON_EFFECT
)
end
function
c93671934
.
filter
(
c
)
return
c
:
GetEquipTarget
()
~=
nil
or
c
:
IsReason
(
REASON_LOST_TARGET
)
end
function
c93671934
.
damcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
eg
:
IsExists
(
c93671934
.
filter
,
1
,
nil
)
local
flag
=
0
local
g
=
eg
:
Filter
(
c93671934
.
filter
,
nil
)
if
g
:
IsExists
(
Card
.
IsControler
,
1
,
nil
,
0
)
then
flag
=
flag
+
1
end
if
g
:
IsExists
(
Card
.
IsControler
,
1
,
nil
,
1
)
then
flag
=
flag
+
2
end
e
:
SetLabel
(({
0
,
1
,
PLAYER_ALL
})[
flag
])
return
true
end
function
c93671934
.
damtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
true
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DAMAGE
,
nil
,
0
,
e
:
GetLabel
(),
1000
)
end
function
c93671934
.
damop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
g
=
eg
:
Filter
(
c93671934
.
filter
,
nil
)
if
g
:
IsExists
(
Card
.
IsControler
,
1
,
nil
,
tp
)
then
if
e
:
GetLabel
()
~=
1
-
tp
then
Duel
.
Damage
(
tp
,
1000
,
REASON_EFFECT
,
true
)
end
if
g
:
IsExists
(
Card
.
IsControler
,
1
,
nil
,
1
-
tp
)
then
if
e
:
GetLabel
()
~=
tp
then
Duel
.
Damage
(
1
-
tp
,
1000
,
REASON_EFFECT
,
true
)
end
Duel
.
RDComplete
()
...
...
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