Browse Source

Fixed issue #4

tags/v0.1.2
Rylee George 7 years ago
parent
commit
566fde2bf8
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      src/server/components/aggro.js

+ 4
- 1
src/server/components/aggro.js View File

@@ -119,11 +119,14 @@ define([
},

willAttack: function(target) {
if (this.obj = target)
return false;

var faction = target.aggro.faction;
if (faction == null)
return false;

if ((target.player) && (this.obj.player))
if ((target.player) && (this.obj.player) && (!player.target))
return ((this.obj.prophecies.hasProphecy('butcher')) && (target.prophecies.hasProphecy('butcher')));

var rep = this.obj.reputation;


Loading…
Cancel
Save