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
八宫一月
ygopro-scripts
Commits
3680a310
Commit
3680a310
authored
Mar 05, 2017
by
DailyShana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
Fluorohydride/ygopro-core@5d33765 is necessary
parent
6d3b608b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
39 deletions
+15
-39
c15894048.lua
c15894048.lua
+15
-39
No files found.
c15894048.lua
View file @
3680a310
...
...
@@ -2,52 +2,28 @@
function
c15894048
.
initial_effect
(
c
)
--attack
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_FIRST_ATTACK
)
e1
:
SetCondition
(
c15894048
.
facon
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_CANNOT_ATTACK
)
e1
:
SetRange
(
LOCATION_MZONE
)
e1
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e1
:
SetTarget
(
c15894048
.
catg
)
e1
:
SetCondition
(
c15894048
.
cacon
)
c
:
RegisterEffect
(
e1
)
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
)
e2
:
SetCode
(
EFFECT_MUST_ATTACK
)
e2
:
SetCondition
(
c15894048
.
facon
)
c
:
RegisterEffect
(
e2
)
local
e3
=
Effect
.
CreateEffect
(
c
)
e3
:
SetType
(
EFFECT_TYPE_SINGLE
)
e3
:
SetCode
(
EFFECT_ATTACK_ALL
)
e3
:
SetCondition
(
c15894048
.
facon
)
e3
:
SetValue
(
1
)
c
:
RegisterEffect
(
e3
)
if
not
c15894048
.
global_check
then
c15894048
.
global_check
=
true
c15894048
[
0
]
=
0
c15894048
[
1
]
=
0
local
ge1
=
Effect
.
CreateEffect
(
c
)
ge1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
ge1
:
SetCode
(
EVENT_ATTACK_ANNOUNCE
)
ge1
:
SetOperation
(
c15894048
.
checkop
)
Duel
.
RegisterEffect
(
ge1
,
0
)
local
ge2
=
Effect
.
CreateEffect
(
c
)
ge2
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
ge2
:
SetCode
(
EVENT_PHASE_START
+
PHASE_BATTLE_START
)
ge2
:
SetOperation
(
c15894048
.
clear
)
Duel
.
RegisterEffect
(
ge2
,
0
)
end
end
function
c15894048
.
checkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
tc
=
eg
:
GetFirst
()
if
c15894048
[
tc
:
GetControler
()]
==
0
then
c15894048
[
tc
:
GetControler
()]
=
1
tc
:
RegisterFlagEffect
(
15894048
,
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_BATTLE
,
0
,
1
)
elseif
tc
:
GetFlagEffect
(
15894048
)
==
0
then
c15894048
[
tc
:
GetControler
()]
=
2
end
function
c15894048
.
catg
(
e
,
c
)
return
not
c
:
IsCode
(
15894048
)
end
function
c15894048
.
clear
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
c15894048
[
0
]
=
0
c15894048
[
1
]
=
0
function
c15894048
.
cfilter
(
c
)
if
not
c
:
IsFaceup
()
or
not
c
:
IsCode
(
15894048
)
or
not
c
:
IsAttackable
()
then
return
false
end
local
ag
,
direct
=
c
:
GetAttackableTarget
()
return
ag
:
GetCount
()
>
0
or
direct
end
function
c15894048
.
facon
(
e
)
local
tp
=
e
:
GetHandlerPlayer
()
return
Duel
.
GetFieldGroupCount
(
tp
,
0
,
LOCATION_MZONE
)
>
0
and
c15894048
[
tp
]
==
e
:
GetHandler
():
GetFlagEffect
(
15894048
)
function
c15894048
.
cacon
(
e
)
return
Duel
.
GetCurrentPhase
()
>
PHASE_MAIN1
and
Duel
.
GetCurrentPhase
()
<
PHASE_MAIN2
and
Duel
.
IsExistingMatchingCard
(
c15894048
.
cfilter
,
e
:
GetHandlerPlayer
(),
LOCATION_MZONE
,
0
,
1
,
nil
)
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