Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
N
Nanahira-Cards
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
nanahira
Nanahira-Cards
Commits
b9336105
Commit
b9336105
authored
Oct 27, 2017
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
anisup
parent
c16bf662
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
35 additions
and
0 deletions
+35
-0
script/c37564765.lua
script/c37564765.lua
+35
-0
No files found.
script/c37564765.lua
View file @
b9336105
...
...
@@ -2527,3 +2527,38 @@ function cm.SelectRitualMaterial(c,g,tp,lv,f)
local
f
=
f
or
Card
.
GetRitualLevel
return
cm
.
SelectGroup
(
tp
,
HINTMSG_RELEASE
,
g
,
cm
.
CheckRitualMaterialGoal
,
nil
,
1
,
99
,
c
,
tp
,
lv
,
f
)
end
--for anifriends sound effects
function
cm
.
AddSummonSE
(
c
,
desc
)
if
c
:
IsStatus
(
STATUS_COPYING_EFFECT
)
or
Senya
.
master_rule_3_flag
then
return
end
local
e1
=
Effect
.
CreateEffect
(
c
)
e1
:
SetType
(
EFFECT_TYPE_SINGLE
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetCode
(
EVENT_SUMMON_SUCCESS
)
e1
:
SetProperty
(
EFFECT_FLAG_UNCOPYABLE
+
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetOperation
(
function
()
Duel
.
Hint
(
12
,
0
,
desc
)
end
)
c
:
RegisterEffect
(
e1
)
local
e2
=
e1
:
Clone
()
e2
:
SetCode
(
EVENT_FLIP_SUMMON_SUCCESS
)
c
:
RegisterEffect
(
e2
)
local
e3
=
e1
:
Clone
()
e3
:
SetCode
(
EVENT_SPSUMMON_SUCCESS
)
c
:
RegisterEffect
(
e3
)
end
function
cm
.
AddAttackSE
(
c
,
desc
)
if
not
cm
.
AttackSEList
then
cm
.
AttackSEList
=
{}
local
e1
=
Effect
.
GlobalEffect
()
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetCode
(
EVENT_ATTACK_ANNOUNCE
)
e1
:
SetProperty
(
EFFECT_FLAG_UNCOPYABLE
+
EFFECT_FLAG_CANNOT_DISABLE
)
e1
:
SetCondition
(
function
()
return
cm
.
AttackSEList
[
Duel
.
GetAttacker
()]
end
)
e1
:
SetOperation
(
function
()
Duel
.
Hint
(
12
,
0
,
cm
.
AttackSEList
[
Duel
.
GetAttacker
()])
end
)
Duel
.
RegisterEffect
(
e1
,
0
)
end
cm
.
AttackSEList
[
c
]
=
desc
end
\ No newline at end of file
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