Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
Tales of MajEyal Borked
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Simon André Curtis
Tales of MajEyal Borked
Commits
8ea2c74b
Commit
8ea2c74b
authored
11 years ago
by
DarkGod
Browse files
Options
Downloads
Patches
Plain Diff
If Freeze is used against a friendly target the cooldown is halved
parent
9d557217
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
game/modules/tome/data/talents/spells/water.lua
+15
-1
15 additions, 1 deletion
game/modules/tome/data/talents/spells/water.lua
with
15 additions
and
1 deletion
game/modules/tome/data/talents/spells/water.lua
+
15
−
1
View file @
8ea2c74b
...
...
@@ -68,7 +68,11 @@ newTalent{
points
=
5
,
random_ego
=
"attack"
,
mana
=
14
,
cooldown
=
function
(
self
,
t
)
return
math.floor
(
self
:
combatTalentLimit
(
t
,
20
,
8
,
12
,
true
))
end
,
-- Limit cooldown <20
cooldown
=
function
(
self
,
t
)
local
mod
=
1
if
self
:
attr
(
"freeze_next_cd_reduce"
)
then
mod
=
1
-
self
.
freeze_next_cd_reduce
self
:
attr
(
"freeze_next_cd_reduce"
,
-
self
.
freeze_next_cd_reduce
)
end
return
math.floor
(
self
:
combatTalentLimit
(
t
,
20
,
8
,
12
,
true
))
*
mod
end
,
-- Limit cooldown <20
tactical
=
{
ATTACK
=
{
COLD
=
1
},
DISABLE
=
{
stun
=
3
}
},
range
=
10
,
direct_hit
=
true
,
...
...
@@ -80,15 +84,25 @@ newTalent{
local
tg
=
{
type
=
"hit"
,
range
=
self
:
getTalentRange
(
t
),
talent
=
t
}
local
x
,
y
=
self
:
getTarget
(
tg
)
if
not
x
or
not
y
then
return
nil
end
local
_
_
,
_
,
_
,
x
,
y
=
self
:
canProject
(
tg
,
x
,
y
)
local
target
=
game
.
level
.
map
(
x
,
y
,
Map
.
ACTOR
)
if
not
x
or
not
y
then
return
nil
end
local
dam
=
self
:
spellCrit
(
t
.
getDamage
(
self
,
t
))
self
:
project
(
tg
,
x
,
y
,
DamageType
.
COLD
,
dam
,
{
type
=
"freeze"
})
self
:
project
(
tg
,
x
,
y
,
DamageType
.
FREEZE
,
{
dur
=
t
.
getDuration
(
self
,
t
),
hp
=
70
+
dam
*
1
.
5
})
if
target
and
self
:
reactionToward
(
target
)
>=
0
then
self
:
attr
(
"freeze_next_cd_reduce"
,
0
.
5
)
end
game
:
playSoundNear
(
self
,
"talents/water"
)
return
true
end
,
info
=
function
(
self
,
t
)
local
damage
=
t
.
getDamage
(
self
,
t
)
return
(
[[Condenses ambient water on a target, freezing it for %d turns and damaging it for %0.2f.
If this is used on a friendly target the cooldown is halved.
The damage will increase with your Spellpower.]]
):
format
(
t
.
getDuration
(
self
,
t
),
damDesc
(
self
,
DamageType
.
COLD
,
damage
))
end
,
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment