Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-pre-data
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
MyCard
ygopro-pre-data
Commits
40d8c398
Commit
40d8c398
authored
Nov 10, 2018
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
956deeae
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
22 deletions
+16
-22
script/c100411016.lua
script/c100411016.lua
+16
-22
No files found.
script/c100411016.lua
View file @
40d8c398
...
@@ -19,7 +19,7 @@ end
...
@@ -19,7 +19,7 @@ end
function
c100411016
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c100411016
.
condition
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
Duel
.
GetCurrentPhase
()
~=
PHASE_DAMAGE
or
not
Duel
.
IsDamageCalculated
()
return
Duel
.
GetCurrentPhase
()
~=
PHASE_DAMAGE
or
not
Duel
.
IsDamageCalculated
()
end
end
function
c100411016
.
cfilter
(
c
)
function
c100411016
.
cfilter
(
c
,
tp
)
return
c
:
IsSetCard
(
0x2093
)
and
c
:
IsType
(
TYPE_RITUAL
)
and
c
:
IsLevelAbove
(
1
)
return
c
:
IsSetCard
(
0x2093
)
and
c
:
IsType
(
TYPE_RITUAL
)
and
c
:
IsLevelAbove
(
1
)
and
Duel
.
IsExistingTarget
(
c100411016
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
c
)
and
Duel
.
IsExistingTarget
(
c100411016
.
filter
,
tp
,
LOCATION_MZONE
,
0
,
1
,
c
)
end
end
...
@@ -53,29 +53,23 @@ function c100411016.activate(e,tp,eg,ep,ev,re,r,rp)
...
@@ -53,29 +53,23 @@ function c100411016.activate(e,tp,eg,ep,ev,re,r,rp)
e2
:
SetCode
(
EFFECT_UPDATE_DEFENSE
)
e2
:
SetCode
(
EFFECT_UPDATE_DEFENSE
)
tc
:
RegisterEffect
(
e2
)
tc
:
RegisterEffect
(
e2
)
local
e3
=
Effect
.
CreateEffect
(
c
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e3
:
SetType
(
EFFECT_TYPE_FIELD
)
e3
:
SetCode
(
EVENT_ATTACK_ANNOUNCE
)
e3
:
SetCode
(
EFFECT_DISABLE
)
e3
:
SetOperation
(
c100411016
.
disop
)
e3
:
SetTargetRange
(
0
,
LOCATION_MZONE
)
e3
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
e3
:
SetTarget
(
c100411016
.
distg
)
tc
:
RegisterEffect
(
e3
)
e3
:
SetLabel
(
tc
:
GetFieldID
())
e3
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
Duel
.
RegisterEffect
(
e3
,
tp
)
local
e4
=
e3
:
Clone
()
local
e4
=
e3
:
Clone
()
e4
:
SetCode
(
E
VENT_BE_BATTLE_TARGE
T
)
e4
:
SetCode
(
E
FFECT_DISABLE_EFFEC
T
)
tc
:
RegisterEffect
(
e4
)
Duel
.
RegisterEffect
(
e4
,
tp
)
end
end
end
end
function
c100411016
.
disop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
c100411016
.
distg
(
e
,
c
)
local
c
=
e
:
GetHandler
()
if
c
:
GetFlagEffect
(
100411016
)
>
0
then
return
true
end
local
bc
=
c
:
GetBattleTarget
()
if
c
:
GetSummonLocation
()
==
LOCATION_EXTRA
and
c
:
GetBattleTarget
()
~=
nil
and
c
:
GetBattleTarget
():
GetFieldID
()
==
e
:
GetLabel
()
then
if
bc
then
c
:
RegisterFlagEffect
(
100411016
,
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_BATTLE
,
0
,
1
)
local
e1
=
Effect
.
CreateEffect
(
c
)
return
true
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_DISABLE
)
e1
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_BATTLE
)
bc
:
RegisterEffect
(
e1
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetCode
(
EFFECT_DISABLE_EFFECT
)
e2
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_BATTLE
)
bc
:
RegisterEffect
(
e2
)
end
end
return
false
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