Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Tales of MajEyal
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
Show more breadcrumbs
tome
Tales of MajEyal
Commits
2e1b32ea
Commit
2e1b32ea
authored
11 years ago
by
DarkGod
Browse files
Options
Downloads
Patches
Plain Diff
Shatter won't stop at the first non-frozen foe it finds
parent
17db0647
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/ice.lua
+17
-17
17 additions, 17 deletions
game/modules/tome/data/talents/spells/ice.lua
with
17 additions
and
17 deletions
game/modules/tome/data/talents/spells/ice.lua
+
17
−
17
View file @
2e1b32ea
...
...
@@ -104,27 +104,27 @@ newTalent{
local
max
=
t
.
getTargetCount
(
self
,
t
)
for
i
,
act
in
ipairs
(
self
.
fov
.
actors_dist
)
do
if
self
:
reactionToward
(
act
)
<
0
then
if
not
act
:
attr
(
"frozen"
)
then
break
end
if
act
:
attr
(
"frozen"
)
then
-- Instakill critters
if
act
.
rank
<=
1
then
if
act
:
canBe
(
"instakill"
)
then
game
.
logSeen
(
act
,
"%s shatters!"
,
act
.
name
:
capitalize
())
act
:
die
(
self
)
end
end
-- Instakill critters
if
act
.
rank
<=
1
then
if
act
:
canBe
(
"instakill"
)
then
game
.
logSeen
(
act
,
"%s shatters!"
,
act
.
name
:
capitalize
())
act
:
die
(
self
)
if
not
act
.
dead
then
local
add_crit
=
0
if
act
.
rank
==
2
then
add_crit
=
50
elseif
act
.
rank
>=
3
then
add_crit
=
25
end
local
tg
=
{
type
=
"hit"
,
friendlyfire
=
false
,
talent
=
t
}
local
grids
=
self
:
project
(
tg
,
act
.
x
,
act
.
y
,
DamageType
.
COLD
,
self
:
spellCrit
(
t
.
getDamage
(
self
,
t
),
add_crit
))
game
.
level
.
map
:
particleEmitter
(
act
.
x
,
act
.
y
,
tg
.
radius
,
"ball_ice"
,
{
radius
=
1
})
end
end
if
not
act
.
dead
then
local
add_crit
=
0
if
act
.
rank
==
2
then
add_crit
=
50
elseif
act
.
rank
>=
3
then
add_crit
=
25
end
local
tg
=
{
type
=
"hit"
,
friendlyfire
=
false
,
talent
=
t
}
local
grids
=
self
:
project
(
tg
,
act
.
x
,
act
.
y
,
DamageType
.
COLD
,
self
:
spellCrit
(
t
.
getDamage
(
self
,
t
),
add_crit
))
game
.
level
.
map
:
particleEmitter
(
act
.
x
,
act
.
y
,
tg
.
radius
,
"ball_ice"
,
{
radius
=
1
})
max
=
max
-
1
if
max
<=
0
then
break
end
end
max
=
max
-
1
if
max
<=
0
then
break
end
end
end
game
:
playSoundNear
(
self
,
"talents/ice"
)
...
...
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