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
7ae4db6d
Commit
7ae4db6d
authored
Apr 04, 2016
by
nekrozar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
new
parent
a43a992b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
75 additions
and
0 deletions
+75
-0
c93149655.lua
c93149655.lua
+75
-0
No files found.
c93149655.lua
0 → 100644
View file @
7ae4db6d
--オッドアイズ・ファントム・ドラゴン
function
c93149655
.
initial_effect
(
c
)
--pendulum summon
aux
.
EnablePendulumAttribute
(
c
)
--atk up
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetDescription
(
aux
.
Stringid
(
93149655
,
0
))
e1
:
SetCategory
(
CATEGORY_ATKCHANGE
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_TRIGGER_O
)
e1
:
SetCode
(
EVENT_ATTACK_ANNOUNCE
)
e1
:
SetRange
(
LOCATION_PZONE
)
e1
:
SetCountLimit
(
1
)
e1
:
SetCondition
(
c93149655
.
atkcon
)
e1
:
SetTarget
(
c93149655
.
atktg
)
e1
:
SetOperation
(
c93149655
.
atkop
)
c
:
RegisterEffect
(
e1
)
--damage
local
e2
=
Effect
.
CreateEffect
(
c
)
e2
:
SetDescription
(
aux
.
Stringid
(
93149655
,
1
))
e2
:
SetCategory
(
CATEGORY_DAMAGE
)
e2
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_TRIGGER_O
)
e2
:
SetCode
(
EVENT_BATTLE_DAMAGE
)
e2
:
SetCountLimit
(
1
,
93149655
)
e2
:
SetCondition
(
c93149655
.
damcon
)
e2
:
SetTarget
(
c93149655
.
damtg
)
e2
:
SetOperation
(
c93149655
.
damop
)
c
:
RegisterEffect
(
e2
)
end
function
c93149655
.
atkcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
seq
=
e
:
GetHandler
():
GetSequence
()
local
tc
=
Duel
.
GetFieldCard
(
tp
,
LOCATION_SZONE
,
13
-
seq
)
if
not
tc
or
not
tc
:
IsSetCard
(
0x99
)
then
return
end
local
a
=
Duel
.
GetAttacker
()
local
d
=
Duel
.
GetAttackTarget
()
if
d
and
a
:
GetControler
()
~=
d
:
GetControler
()
then
if
a
:
IsControler
(
tp
)
and
a
:
IsFaceup
()
then
e
:
SetLabelObject
(
a
)
elseif
d
:
IsFaceup
()
then
e
:
SetLabelObject
(
d
)
else
return
false
end
return
true
else
return
false
end
end
function
c93149655
.
atktg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
tc
=
e
:
GetLabelObject
()
if
chk
==
0
then
return
tc
:
IsOnField
()
end
Duel
.
SetTargetCard
(
tc
)
end
function
c93149655
.
atkop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
not
e
:
GetHandler
():
IsRelateToEffect
(
e
)
then
return
end
local
tc
=
Duel
.
GetFirstTarget
()
if
tc
:
IsRelateToEffect
(
e
)
and
tc
:
IsFaceup
()
and
tc
:
IsControler
(
tp
)
then
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_SINGLE
)
e1
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e1
:
SetValue
(
1200
)
e1
:
SetReset
(
RESET_EVENT
+
0x1fe0000
+
RESET_PHASE
+
PHASE_BATTLE
)
tc
:
RegisterEffect
(
e1
)
end
end
function
c93149655
.
damcon
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
return
ep
~=
tp
and
e
:
GetHandler
():
GetSummonType
()
==
SUMMON_TYPE_PENDULUM
and
Duel
.
GetAttacker
()
==
e
:
GetHandler
()
end
function
c93149655
.
damfilter
(
c
)
return
c
:
IsFaceup
()
and
(
c
:
GetSequence
()
==
6
or
c
:
GetSequence
()
==
7
)
and
c
:
IsSetCard
(
0x99
)
end
function
c93149655
.
damtg
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
,
chk
)
local
ct
=
Duel
.
GetMatchingGroupCount
(
c93149655
.
damfilter
,
tp
,
LOCATION_SZONE
,
0
,
nil
)
if
chk
==
0
then
return
ct
>
0
end
Duel
.
SetTargetParam
(
ct
*
1200
)
Duel
.
SetOperationInfo
(
0
,
CATEGORY_DAMAGE
,
nil
,
0
,
1
-
tp
,
ct
*
1200
)
end
function
c93149655
.
damop
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
ct
=
Duel
.
GetMatchingGroupCount
(
c93149655
.
damfilter
,
tp
,
LOCATION_SZONE
,
0
,
nil
)
Duel
.
Damage
(
1
-
tp
,
ct
*
1200
,
REASON_EFFECT
)
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