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
f073fd14
Commit
f073fd14
authored
Jan 15, 2020
by
DailyShana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix 闇味鍋パーティー
parent
f7ac6733
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
21 deletions
+33
-21
c24181936.lua
c24181936.lua
+33
-21
No files found.
c24181936.lua
View file @
f073fd14
...
...
@@ -32,28 +32,40 @@ function c24181936.atkop1(e,tp,eg,ep,ev,re,r,rp)
if
tc
:
IsRelateToEffect
(
e
)
then
if
tc
:
GetFlagEffect
(
24181936
)
==
0
then
tc
:
RegisterFlagEffect
(
24181936
,
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
,
0
,
1
)
local
e3
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e3
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e3
:
SetCode
(
EVENT_ATTACK_ANNOUNCE
)
e3
:
SetCondition
(
c24181936
.
atkcon2
)
e3
:
SetOperation
(
c24181936
.
atkop2
)
e3
:
SetReset
(
RESET_EVENT
+
RESETS_STANDARD
+
RESET_PHASE
+
PHASE_END
)
tc
:
RegisterEffect
(
e3
)
local
e1
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e1
:
SetType
(
EFFECT_TYPE_FIELD
)
e1
:
SetCode
(
EFFECT_PATRICIAN_OF_DARKNESS
)
e1
:
SetProperty
(
EFFECT_FLAG_PLAYER_TARGET
)
e1
:
SetTargetRange
(
1
,
0
)
e1
:
SetCondition
(
c24181936
.
effcon
)
e1
:
SetLabelObject
(
tc
)
e1
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
Duel
.
RegisterEffect
(
e1
,
tp
)
local
e2
=
Effect
.
CreateEffect
(
e
:
GetHandler
())
e2
:
SetType
(
EFFECT_TYPE_FIELD
)
e2
:
SetCode
(
EFFECT_UPDATE_ATTACK
)
e2
:
SetTargetRange
(
LOCATION_MZONE
,
0
)
e2
:
SetCondition
(
c24181936
.
atkcon2
)
e2
:
SetTarget
(
c24181936
.
atktg
)
e2
:
SetValue
(
c24181936
.
atkval
)
e2
:
SetLabelObject
(
tc
)
e2
:
SetReset
(
RESET_PHASE
+
PHASE_END
)
Duel
.
RegisterEffect
(
e2
,
tp
)
end
end
end
function
c24181936
.
atkcon2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
ag
=
eg
:
GetFirst
():
GetAttackableTarge
t
()
local
at
=
e
:
GetHandler
():
GetBattleTarget
()
return
at
~=
nil
and
ag
:
IsExists
(
aux
.
TRUE
,
1
,
at
)
end
function
c24181936
.
atkop2
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
local
ag
=
eg
:
GetFirst
():
GetAttackableTarget
()
local
at
=
e
:
GetHandler
():
GetBattleTarget
()
Duel
.
Hint
(
HINT_SELECTMSG
,
1
-
tp
,
HINTMSG_ATTACKTARGET
)
local
g
=
ag
:
Select
(
1
-
tp
,
1
,
1
,
at
)
local
tc
=
g
:
GetFirst
()
if
tc
then
Duel
.
ChangeAttackTarget
(
t
c
)
end
function
c24181936
.
effcon
(
e
)
local
tc
=
e
:
GetLabelObjec
t
()
return
tc
:
GetFlagEffect
(
24181936
)
~=
0
and
Duel
.
GetAttacker
()
==
tc
end
function
c24181936
.
atkcon2
(
e
)
local
tc
=
e
:
GetLabelObject
(
)
return
Duel
.
GetCurrentPhase
()
==
PHASE_DAMAGE_CAL
and
tc
:
GetFlagEffect
(
24181936
)
~=
0
and
Duel
.
GetAttacker
()
==
tc
end
function
c24181936
.
atktg
(
e
,
c
)
return
c
==
Duel
.
GetAttacker
()
end
function
c24181936
.
atkval
(
e
,
c
)
return
c
:
GetBaseAttack
()
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