|
|
@@ -338,8 +338,6 @@ module.exports = { |
|
|
|
}, |
|
|
|
|
|
|
|
kill: function (target) { |
|
|
|
this.obj.auth.track('combat', 'kill', target.name); |
|
|
|
|
|
|
|
if (target.player) |
|
|
|
return; |
|
|
|
|
|
|
@@ -372,6 +370,8 @@ module.exports = { |
|
|
|
} |
|
|
|
|
|
|
|
if (a.obj.player) { |
|
|
|
a.obj.auth.track('combat', 'kill', target.name); |
|
|
|
|
|
|
|
//Scale xp by source level so you can't just farm low level mobs (or get boosted on high level mobs). |
|
|
|
//Mobs that are farther then 10 levels from you, give no xp |
|
|
|
//We don't currently do this for quests/herb gathering |
|
|
@@ -398,7 +398,7 @@ module.exports = { |
|
|
|
if (source.follower) |
|
|
|
killSource = source.follower.master; |
|
|
|
|
|
|
|
if (killSource.player) |
|
|
|
if (killSource.stats) |
|
|
|
killSource.stats.kill(obj); |
|
|
|
|
|
|
|
const deathEvent = { |
|
|
|