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
d8701b13
Commit
d8701b13
authored
Jan 21, 2017
by
VanillaSalt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
b5e591cf
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
42 additions
and
3 deletions
+42
-3
c33327029.lua
c33327029.lua
+22
-2
c76794549.lua
c76794549.lua
+20
-1
No files found.
c33327029.lua
View file @
d8701b13
...
@@ -4,7 +4,7 @@ function c33327029.initial_effect(c)
...
@@ -4,7 +4,7 @@ function c33327029.initial_effect(c)
local
e1
=
Effect
.
CreateEffect
(
c
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e1
:
SetCategory
(
CATEGORY_SPECIAL_SUMMON
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_
DESTROYED
)
e1
:
SetCode
(
EVENT_
CUSTOM
+
33327029
)
e1
:
SetProperty
(
EFFECT_FLAG_DAMAGE_STEP
+
EFFECT_FLAG_DELAY
)
e1
:
SetProperty
(
EFFECT_FLAG_DAMAGE_STEP
+
EFFECT_FLAG_DELAY
)
e1
:
SetCondition
(
c33327029
.
condition
)
e1
:
SetCondition
(
c33327029
.
condition
)
e1
:
SetTarget
(
c33327029
.
target
)
e1
:
SetTarget
(
c33327029
.
target
)
...
@@ -21,12 +21,32 @@ function c33327029.initial_effect(c)
...
@@ -21,12 +21,32 @@ function c33327029.initial_effect(c)
e2
:
SetTarget
(
c33327029
.
thtg
)
e2
:
SetTarget
(
c33327029
.
thtg
)
e2
:
SetOperation
(
c33327029
.
thop
)
e2
:
SetOperation
(
c33327029
.
thop
)
c
:
RegisterEffect
(
e2
)
c
:
RegisterEffect
(
e2
)
if
not
c33327029
.
global_check
then
c33327029
.
global_check
=
true
local
ge1
=
Effect
.
CreateEffect
(
c
)
ge1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
ge1
:
SetCode
(
EVENT_DESTROYED
)
ge1
:
SetCondition
(
c33327029
.
regcon
)
ge1
:
SetOperation
(
c33327029
.
regop
)
Duel
.
RegisterEffect
(
ge1
,
0
)
end
end
end
function
c33327029
.
cfilter
(
c
,
tp
)
function
c33327029
.
cfilter
(
c
,
tp
)
return
c
:
IsReason
(
REASON_BATTLE
+
REASON_EFFECT
)
and
c
:
GetPreviousControler
()
==
tp
and
c
:
IsPreviousLocation
(
LOCATION_ONFIELD
)
return
c
:
IsReason
(
REASON_BATTLE
+
REASON_EFFECT
)
and
c
:
GetPreviousControler
()
==
tp
and
c
:
IsPreviousLocation
(
LOCATION_ONFIELD
)
end
end
function
c33327029
.
regcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
v
=
0
if
eg
:
IsExists
(
c33327029
.
cfilter
,
1
,
nil
,
0
)
then
v
=
v
+
1
end
if
eg
:
IsExists
(
c33327029
.
cfilter
,
1
,
nil
,
1
)
then
v
=
v
+
2
end
if
v
==
0
then
return
false
end
e
:
SetLabel
(({
0
,
1
,
PLAYER_ALL
})[
v
])
return
true
end
function
c33327029
.
regop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
RaiseEvent
(
eg
,
EVENT_CUSTOM
+
33327029
,
re
,
r
,
rp
,
ep
,
e
:
GetLabel
())
end
function
c33327029
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c33327029
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
e
g
:
IsExists
(
c33327029
.
cfilter
,
1
,
nil
,
tp
)
return
e
v
==
tp
or
ev
==
PLAYER_ALL
end
end
function
c33327029
.
filter
(
c
,
e
,
tp
)
function
c33327029
.
filter
(
c
,
e
,
tp
)
return
c
:
IsSetCard
(
0xe1
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
return
c
:
IsSetCard
(
0xe1
)
and
c
:
IsCanBeSpecialSummoned
(
e
,
0
,
tp
,
false
,
false
)
...
...
c76794549.lua
View file @
d8701b13
...
@@ -33,6 +33,25 @@ function c76794549.initial_effect(c)
...
@@ -33,6 +33,25 @@ function c76794549.initial_effect(c)
e3
:
SetTarget
(
c76794549
.
hntg
)
e3
:
SetTarget
(
c76794549
.
hntg
)
e3
:
SetOperation
(
c76794549
.
hnop
)
e3
:
SetOperation
(
c76794549
.
hnop
)
c
:
RegisterEffect
(
e3
)
c
:
RegisterEffect
(
e3
)
if
not
c76794549
.
global_check
then
c76794549
.
global_check
=
true
local
ge1
=
Effect
.
CreateEffect
(
c
)
ge1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
ge1
:
SetCode
(
EVENT_DESTROYED
)
ge1
:
SetOperation
(
c76794549
.
checkop
)
Duel
.
RegisterEffect
(
ge1
,
0
)
end
end
function
c76794549
.
checkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
eg
:
GetFirst
()
while
tc
do
if
tc
:
IsLocation
(
LOCATION_GRAVE
+
LOCATION_REMOVED
)
then
tc
:
RegisterFlagEffect
(
76794549
,
RESET_EVENT
+
0x1f20000
+
RESET_PHASE
+
PHASE_END
,
0
,
1
)
elseif
tc
:
IsLocation
(
LOCATION_EXTRA
)
then
tc
:
RegisterFlagEffect
(
76794549
,
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_END
,
0
,
1
)
end
tc
=
eg
:
GetNext
()
end
end
end
function
c76794549
.
rpfilter
(
c
,
e
,
tp
)
function
c76794549
.
rpfilter
(
c
,
e
,
tp
)
return
c
:
IsCode
(
94415058
)
and
(
not
c
:
IsForbidden
()
return
c
:
IsCode
(
94415058
)
and
(
not
c
:
IsForbidden
()
...
@@ -75,7 +94,7 @@ function c76794549.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
...
@@ -75,7 +94,7 @@ function c76794549.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
c
,
1
,
0
,
0
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_SPECIAL_SUMMON
,
c
,
1
,
0
,
0
)
end
end
function
c76794549
.
thfilter1
(
c
,
tp
,
id
)
function
c76794549
.
thfilter1
(
c
,
tp
,
id
)
return
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
IsReason
(
REASON_DESTROY
)
and
c
:
GetTurnID
()
==
id
return
c
:
IsType
(
TYPE_MONSTER
)
and
c
:
GetFlagEffect
(
76794549
)
~=
0
and
(
c
:
IsLocation
(
LOCATION_GRAVE
)
or
c
:
IsFaceup
())
and
(
c
:
IsLocation
(
LOCATION_GRAVE
)
or
c
:
IsFaceup
())
and
Duel
.
IsExistingMatchingCard
(
c76794549
.
thfilter2
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
c
:
GetCode
())
and
Duel
.
IsExistingMatchingCard
(
c76794549
.
thfilter2
,
tp
,
LOCATION_DECK
,
0
,
1
,
nil
,
c
:
GetCode
())
end
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