Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro
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
Commits
f07b614b
Commit
f07b614b
authored
Dec 07, 2014
by
DailyShana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
c5509617
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
7 deletions
+17
-7
script/c8529136.lua
script/c8529136.lua
+13
-7
script/c95376428.lua
script/c95376428.lua
+4
-0
No files found.
script/c8529136.lua
View file @
f07b614b
...
...
@@ -10,18 +10,19 @@ function c8529136.initial_effect(c)
c
:
RegisterEffect
(
e1
)
end
function
c8529136
.
filter
(
c
)
return
c
:
IsFaceup
()
and
c
:
IsCode
(
60800381
)
return
c
:
IsFaceup
()
and
c
:
IsCode
(
60800381
)
and
c
:
GetFlagEffect
(
8529136
)
==
0
end
function
c8529136
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
,
chkc
)
if
chkc
then
return
chkc
:
IsControler
(
tp
)
and
chkc
:
IsLocation
(
LOCATION_MZONE
)
and
c8529136
.
filter
(
chkc
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c8529136
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
end
if
chk
==
0
then
return
Duel
.
IsExistingTarget
(
c8529136
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
nil
)
and
bit
.
band
(
Duel
.
GetCurrentPhase
(),
0xc0
)
==
0
end
Duel
.
Hint
(
HINT_SELECTMSG
,
tp
,
HINTMSG_FACEUP
)
Duel
.
SelectTarget
(
tp
,
c8529136
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
1
,
nil
)
end
function
c8529136
.
activate
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
c
=
e
:
GetHandler
()
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsFaceup
()
then
if
tc
:
IsRelateToEffect
(
e
)
and
tc
:
GetFlagEffect
(
8529136
)
==
0
then
tc
:
RegisterFlagEffect
(
8529136
,
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
RESET_END
,
0
,
1
)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
...
...
@@ -35,6 +36,7 @@ function c8529136.activate(e,tp,eg,ep,ev,re,r,rp)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetCode
(
EFFECT_PIERCE
)
e2
:
SetCondition
(
c8529136
.
con
)
e2
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_END
)
tc
:
RegisterEffect
(
e2
)
local
e3
=
Effect
.
CreateEffect
(
c
)
...
...
@@ -47,12 +49,13 @@ function c8529136.activate(e,tp,eg,ep,ev,re,r,rp)
local
e4
=
Effect
.
CreateEffect
(
c
)
e4
:
SetType
(
EFFECT_TYPE_SINGLE
)
e4
:
SetCode
(
EFFECT_INDESTRUCTABLE_BATTLE
)
e4
:
SetCondition
(
c8529136
.
con
)
e4
:
SetValue
(
1
)
e4
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_END
)
tc
:
RegisterEffect
(
e4
)
local
e5
=
Effect
.
CreateEffect
(
c
)
e5
:
SetCategory
(
CATEGORY_DESTROY
)
e5
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_
TRIGGER_F
)
e5
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_
CONTINUOUS
)
e5
:
SetCode
(
EVENT_DAMAGE_STEP_END
)
e5
:
SetCondition
(
c8529136
.
descon
)
e5
:
SetTarget
(
c8529136
.
destg
)
...
...
@@ -62,20 +65,23 @@ function c8529136.activate(e,tp,eg,ep,ev,re,r,rp)
end
end
function
c8529136
.
actcon
(
e
)
return
e
:
GetHandler
():
GetBattleTarget
()
~=
nil
return
e
:
GetHandler
():
GetBattleTarget
()
~=
nil
and
e
:
GetHandler
():
GetControler
()
==
e
:
GetOwnerPlayer
()
end
function
c8529136
.
aclimit
(
e
,
re
,
tp
)
return
not
re
:
GetHandler
():
IsImmuneToEffect
(
e
)
end
function
c8529136
.
con
(
e
)
return
e
:
GetHandler
():
GetControler
()
==
e
:
GetOwnerPlayer
()
end
function
c8529136
.
damcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
ep
~=
tp
and
e
:
GetHandler
():
GetBattleTarget
()
~=
nil
return
ep
~=
tp
and
e
:
GetHandler
():
GetBattleTarget
()
~=
nil
and
e
:
GetHandler
():
GetControler
()
==
e
:
GetOwnerPlayer
()
end
function
c8529136
.
damop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
Duel
.
ChangeBattleDamage
(
ep
,
ev
*
2
)
end
function
c8529136
.
descon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
d
=
e
:
GetHandler
():
GetBattleTarget
()
return
d
and
d
:
IsRelateToBattle
()
return
d
and
d
:
IsRelateToBattle
()
and
e
:
GetHandler
():
GetControler
()
==
e
:
GetOwnerPlayer
()
end
function
c8529136
.
destg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
tc
=
e
:
GetHandler
():
GetBattleTarget
()
...
...
script/c95376428.lua
View file @
f07b614b
...
...
@@ -13,12 +13,16 @@ function c95376428.initial_effect(c)
e2
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
e2
:
SetRange
(
LOCATION_FZONE
)
e2
:
SetCondition
(
c95376428
.
condition
)
e2
:
SetTarget
(
c95376428
.
target
)
e2
:
SetOperation
(
c95376428
.
operation
)
c
:
RegisterEffect
(
e2
)
end
function
c95376428
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
eg
:
IsExists
(
Card
.
IsPreviousLocation
,
1
,
nil
,
LOCATION_EXTRA
)
end
function
c95376428
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
if
chk
==
0
then
return
e
:
GetHandler
():
IsRelateToEffect
(
e
)
end
end
function
c95376428
.
filter
(
c
,
tp
)
return
c
:
GetSummonPlayer
()
==
tp
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