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
ecc9ccf1
Commit
ecc9ccf1
authored
Oct 04, 2015
by
VanillaSalt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
8f7a3931
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
2 deletions
+19
-2
c70043345.lua
c70043345.lua
+19
-2
No files found.
c70043345.lua
View file @
ecc9ccf1
...
...
@@ -4,6 +4,9 @@ function c70043345.initial_effect(c)
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_ACTIVATE
)
e1
:
SetCode
(
EVENT_FREE_CHAIN
)
e1
:
SetProperty
(
EFFECT_FLAG_DAMAGE_STEP
)
e1
:
SetHintTiming
(
TIMING_DAMAGE_STEP
)
e1
:
SetTarget
(
c70043345
.
target
)
c
:
RegisterEffect
(
e1
)
--remove
local
e2
=
Effect
.
CreateEffect
(
c
)
...
...
@@ -27,20 +30,34 @@ function c70043345.initial_effect(c)
e3
:
SetOperation
(
c70043345
.
thop
)
c
:
RegisterEffect
(
e3
)
end
function
c70043345
.
target
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
b1
=
Duel
.
GetCurrentPhase
()
~=
PHASE_DAMAGE
local
b2
=
Duel
.
CheckEvent
(
EVENT_BATTLE_START
)
and
c70043345
.
rmcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
and
c70043345
.
rmtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
0
)
if
chk
==
0
then
return
b1
or
b2
end
if
b2
then
e
:
SetCategory
(
CATEGORY_REMOVE
)
e
:
SetOperation
(
c70043345
.
rmop
)
c70043345
.
rmtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
1
)
else
e
:
SetCategory
(
0
)
e
:
SetOperation
(
nil
)
end
end
function
c70043345
.
rmcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
Duel
.
GetAttacker
()
local
bc
=
Duel
.
GetAttackTarget
()
if
not
bc
then
return
false
end
if
tc
:
IsControler
(
1
-
tp
)
then
tc
,
bc
=
bc
,
tc
end
if
tc
:
IsSetCard
(
0xb2
)
then
if
tc
:
Is
Faceup
()
and
tc
:
Is
SetCard
(
0xb2
)
then
e
:
SetLabelObject
(
bc
)
return
true
else
return
false
end
end
function
c70043345
.
rmtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
bc
=
e
:
GetLabelObject
()
if
chk
==
0
then
return
bc
:
IsAbleToRemove
()
end
if
chk
==
0
then
return
bc
:
IsAbleToRemove
()
and
Duel
.
GetFlagEffect
(
tp
,
70043345
)
==
0
end
Duel
.
SetOperationInfo
(
0
,
CATEGORY_REMOVE
,
bc
,
1
,
0
,
0
)
Duel
.
RegisterFlagEffect
(
tp
,
70043345
,
RESET_PHASE
+
RESET_END
,
0
,
1
)
end
function
c70043345
.
rmop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
not
e
:
GetHandler
():
IsRelateToEffect
(
e
)
then
return
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