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
00ba917c
Commit
00ba917c
authored
Jan 20, 2018
by
DailyShana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
01399a8b
Changes
12
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
41 additions
and
30 deletions
+41
-30
c1118137.lua
c1118137.lua
+1
-1
c2930675.lua
c2930675.lua
+7
-3
c35146019.lua
c35146019.lua
+14
-1
c36368606.lua
c36368606.lua
+2
-2
c36668118.lua
c36668118.lua
+1
-1
c49725936.lua
c49725936.lua
+1
-10
c55787576.lua
c55787576.lua
+5
-5
c62530723.lua
c62530723.lua
+7
-3
c73275815.lua
c73275815.lua
+1
-1
c75119040.lua
c75119040.lua
+1
-1
c77058170.lua
c77058170.lua
+1
-1
c879958.lua
c879958.lua
+0
-1
No files found.
c1118137.lua
View file @
00ba917c
...
...
@@ -78,7 +78,7 @@ function c1118137.desreptg(e,tp,eg,ep,ev,re,r,rp,chk)
local
c
=
e
:
GetHandler
()
local
tg
=
c
:
GetEquipTarget
()
if
chk
==
0
then
return
not
c
:
IsStatus
(
STATUS_DESTROY_CONFIRMED
)
and
tg
and
tg
:
IsReason
(
REASON_BATTLE
+
REASON_EFFECT
)
and
tg
and
tg
:
IsReason
(
REASON_BATTLE
+
REASON_EFFECT
)
and
not
tg
:
IsReason
(
REASON_REPLACE
)
and
Duel
.
IsCanRemoveCounter
(
tp
,
1
,
0
,
0x1
,
1
,
REASON_EFFECT
)
end
return
Duel
.
SelectEffectYesNo
(
tp
,
c
,
96
)
end
...
...
c2930675.lua
View file @
00ba917c
...
...
@@ -42,11 +42,15 @@ function c2930675.activate(e,tp,eg,ep,ev,re,r,rp)
Duel
.
SendtoHand
(
tc
,
nil
,
REASON_EFFECT
)
end
end
function
c2930675
.
cfilter
(
c
,
tp
)
return
c
:
IsControler
(
tp
)
and
c
:
IsLocation
(
LOCATION_MZONE
)
and
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x10c
)
function
c2930675
.
cfilter
(
c
,
seq2
)
local
seq1
=
c
:
GetSequence
()
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x10c
)
and
(
seq1
==
4
-
seq2
or
(
seq2
==
5
and
seq1
==
3
)
or
(
seq2
==
6
and
seq1
==
1
))
end
function
c2930675
.
discon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
rp
~=
tp
and
re
:
IsActiveType
(
TYPE_TRAP
)
and
re
:
GetHandler
():
GetColumnGroup
():
FilterCount
(
c2930675
.
cfilter
,
nil
,
tp
)
>
0
local
loc
,
seq
=
Duel
.
GetChainInfo
(
ev
,
CHAININFO_TRIGGERING_LOCATION
,
CHAININFO_TRIGGERING_SEQUENCE
)
return
rp
~=
tp
and
re
:
IsActiveType
(
TYPE_TRAP
)
and
loc
==
LOCATION_SZONE
and
Duel
.
IsExistingMatchingCard
(
c2930675
.
cfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
,
seq
)
end
function
c2930675
.
disop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
NegateEffect
(
ev
)
...
...
c35146019.lua
View file @
00ba917c
...
...
@@ -11,10 +11,17 @@ function c35146019.initial_effect(c)
e1
:
SetOperation
(
c35146019
.
operation
)
c
:
RegisterEffect
(
e1
)
--Destroy
local
e0
=
Effect
.
CreateEffect
(
c
)
e0
:
SetType
(
EFFECT_TYPE_CONTINUOUS
+
EFFECT_TYPE_SINGLE
)
e0
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e0
:
SetCode
(
EVENT_LEAVE_FIELD_P
)
e0
:
SetOperation
(
c35146019
.
checkop
)
c
:
RegisterEffect
(
e0
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_CONTINUOUS
+
EFFECT_TYPE_SINGLE
)
e2
:
SetCode
(
EVENT_LEAVE_FIELD
)
e2
:
SetOperation
(
c35146019
.
desop
)
e2
:
SetLabelObject
(
e0
)
c
:
RegisterEffect
(
e2
)
--to hand
local
e3
=
Effect
.
CreateEffect
(
c
)
...
...
@@ -87,7 +94,13 @@ function c35146019.operation(e,tp,eg,ep,ev,re,r,rp)
c
:
CancelToGrave
(
false
)
end
end
function
c35146019
.
checkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
e
:
GetHandler
():
IsDisabled
()
then
e
:
SetLabel
(
1
)
else
e
:
SetLabel
(
0
)
end
end
function
c35146019
.
desop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
e
:
GetLabelObject
():
GetLabel
()
~=
0
then
return
end
local
c
=
e
:
GetHandler
()
local
tc
=
c
:
GetFirstCardTarget
()
if
tc
and
tc
:
IsLocation
(
LOCATION_MZONE
)
then
...
...
@@ -106,7 +119,7 @@ function c35146019.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
end
function
c35146019
.
thop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
and
tc
:
IsRelateToEffect
(
e
)
then
if
tc
:
IsRelateToEffect
(
e
)
then
Duel
.
SendtoHand
(
tc
,
nil
,
REASON_EFFECT
)
end
end
c36368606.lua
View file @
00ba917c
...
...
@@ -90,6 +90,6 @@ function c36368606.immop(e,tp,eg,ep,ev,re,r,rp)
tc
=
g
:
GetNext
()
end
end
function
c36368606
.
efilter
(
e
,
te
)
return
te
:
GetOwner
()
~=
e
:
GetHandler
()
function
c36368606
.
efilter
(
e
,
te
,
c
)
return
te
:
GetOwner
()
~=
c
end
c36668118.lua
View file @
00ba917c
...
...
@@ -72,7 +72,7 @@ end
function
c36668118
.
spop2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
ft
=
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
local
ct
=
Duel
.
GetFieldGroupCount
(
tp
,
0
,
LOCATION_MZONE
)
-
Duel
.
GetFieldGroupCount
(
tp
,
LOCATION_MZONE
,
0
)
local
g
=
Duel
.
GetMatchingGroup
(
aux
.
NecroValleyFilter
(
c36668118
.
spfilter
)
,
tp
,
LOCATION_GRAVE
,
0
,
nil
,
e
,
tp
)
local
g
=
Duel
.
GetMatchingGroup
(
c36668118
.
spfilter
,
tp
,
LOCATION_GRAVE
,
0
,
nil
,
e
,
tp
)
if
ft
<
1
or
ct
<
1
or
g
:
GetCount
()
==
0
then
return
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SPSUMMON
)
local
sg
=
g
:
Select
(
tp
,
1
,
1
,
nil
)
...
...
c49725936.lua
View file @
00ba917c
...
...
@@ -22,12 +22,6 @@ function c49725936.initial_effect(c)
e2
:
SetCode
(
EFFECT_PIERCE
)
c
:
RegisterEffect
(
e2
)
--special summon
local
e0
=
Effect
.
CreateEffect
(
c
)
e0
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e0
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e0
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e0
:
SetOperation
(
c49725936
.
regop
)
c
:
RegisterEffect
(
e0
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetDescription
(
aux
.
Stringid
(
49725936
,
1
))
e3
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
...
...
@@ -53,11 +47,8 @@ end
function
c49725936
.
negop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
NegateActivation
(
ev
)
end
function
c49725936
.
regop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
e
:
GetHandler
():
RegisterFlagEffect
(
49725936
,
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_END
,
0
,
1
)
end
function
c49725936
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
GetFlagEffect
(
49725936
)
==
0
return
not
e
:
GetHandler
():
IsStatus
(
STATUS_SPSUMMON_TURN
)
end
function
c49725936
.
spcost
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsReleasable
()
end
...
...
c55787576.lua
View file @
00ba917c
...
...
@@ -11,16 +11,16 @@ function c55787576.initial_effect(c)
--cannot be target/indestructable
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetCode
(
EFFECT_CANNOT_BE_EFFECT_TARGET
)
e2
:
SetProperty
(
EFFECT_FLAG_IGNORE_IMMUNE
+
EFFECT_FLAG_SET_AVAILABLE
)
e2
:
SetCode
(
EFFECT_INDESTRUCTABLE_EFFECT
)
e2
:
SetRange
(
LOCATION_MZONE
)
e2
:
SetTargetRange
(
LOCATION_ONFIELD
,
0
)
e2
:
SetTarget
(
c55787576
.
tgtg
)
e2
:
SetValue
(
aux
.
tg
oval
)
e2
:
SetValue
(
aux
.
ind
oval
)
c
:
RegisterEffect
(
e2
)
local
e3
=
e2
:
Clone
()
e3
:
SetCode
(
EFFECT_INDESTRUCTABLE_EFFECT
)
e3
:
SetValue
(
aux
.
indoval
)
e3
:
SetCode
(
EFFECT_CANNOT_BE_EFFECT_TARGET
)
e3
:
SetProperty
(
EFFECT_FLAG_IGNORE_IMMUNE
)
e3
:
SetValue
(
aux
.
tgoval
)
c
:
RegisterEffect
(
e3
)
--spsummon
local
e4
=
Effect
.
CreateEffect
(
c
)
...
...
c62530723.lua
View file @
00ba917c
...
...
@@ -57,11 +57,15 @@ function c62530723.activate(e,tp,eg,ep,ev,re,r,rp)
tc
:
RegisterEffect
(
e2
)
end
end
function
c62530723
.
cfilter
(
c
,
tp
)
return
c
:
IsControler
(
tp
)
and
c
:
IsLocation
(
LOCATION_MZONE
)
and
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x10c
)
function
c62530723
.
cfilter
(
c
,
seq2
)
local
seq1
=
c
:
GetSequence
()
return
c
:
IsFaceup
()
and
c
:
IsSetCard
(
0x10c
)
and
(
seq1
==
4
-
seq2
or
(
seq2
==
5
and
seq1
==
3
)
or
(
seq2
==
6
and
seq1
==
1
))
end
function
c62530723
.
discon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
rp
~=
tp
and
re
:
IsActiveType
(
TYPE_SPELL
)
and
re
:
GetHandler
():
GetColumnGroup
():
FilterCount
(
c62530723
.
cfilter
,
nil
,
tp
)
>
0
local
loc
,
seq
=
Duel
.
GetChainInfo
(
ev
,
CHAININFO_TRIGGERING_LOCATION
,
CHAININFO_TRIGGERING_SEQUENCE
)
return
rp
~=
tp
and
re
:
IsActiveType
(
TYPE_SPELL
)
and
loc
==
LOCATION_SZONE
and
Duel
.
IsExistingMatchingCard
(
c62530723
.
cfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
,
seq
)
end
function
c62530723
.
disop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
NegateEffect
(
ev
)
...
...
c73275815.lua
View file @
00ba917c
...
...
@@ -5,7 +5,7 @@ function c73275815.initial_effect(c)
e1
:
SetCategory
(
CATEGORY_DESTROY
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetCountLimit
(
1
,
73275815
)
e1
:
SetCountLimit
(
1
,
73275815
+
EFFECT_COUNT_CODE_OATH
)
e1
:
SetCondition
(
c73275815
.
condition
)
e1
:
SetTarget
(
c73275815
.
target
)
e1
:
SetOperation
(
c73275815
.
activate
)
...
...
c75119040.lua
View file @
00ba917c
...
...
@@ -46,7 +46,7 @@ function c75119040.atkval(e,c)
return
c
:
GetLinkedGroup
():
FilterCount
(
c75119040
.
atkfilter
,
nil
)
*
500
end
function
c75119040
.
spcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
:
GetHandler
():
GetAttackedCount
()
>
0
return
e
:
GetHandler
():
GetAttack
Announc
edCount
()
>
0
end
function
c75119040
.
sptg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
Duel
.
GetLocationCount
(
tp
,
LOCATION_MZONE
)
>
0
...
...
c77058170.lua
View file @
00ba917c
...
...
@@ -19,8 +19,8 @@ function c77058170.atkfilter(c,g)
return
c
:
IsFaceup
()
and
c
:
GetAttack
()
>
0
and
g
:
IsContains
(
c
)
end
function
c77058170
.
atktg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
local
lg
=
e
:
GetHandler
():
GetLinkedGroup
()
if
chkc
then
return
false
end
local
lg
=
e
:
GetHandler
():
GetLinkedGroup
()
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c77058170
.
atkfilter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
,
lg
)
and
Duel
.
IsExistingTarget
(
Card
.
IsFaceup
,
tp
,
0
,
LOCATION_MZONE
,
1
,
nil
)
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_SELF
)
...
...
c879958.lua
View file @
00ba917c
...
...
@@ -120,7 +120,6 @@ function c879958.atkop(e,tp,eg,ep,ev,re,r,rp)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_EXTRA_ATTACK
)
e1
:
SetProperty
(
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetValue
(
1
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_END
)
tc
:
RegisterEffect
(
e1
)
...
...
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