Browse Source

bug[#1620]: Fixed an issue that caused nobody to get xp/rep when a non player lands a killing blow on a mob

tags/v0.8.2.2^2
Shaun 3 years ago
parent
commit
af9f142e35
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      src/server/components/stats.js

+ 3
- 3
src/server/components/stats.js View File

@@ -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 = {


Loading…
Cancel
Save