Finally should fix aggressiveness smh (#165)

closes #160

Let me know if this doesn't work, but hoping it does. My local testing had it working perfectly
This commit is contained in:
Mr Extremez authored and Daniel Ginovker committed 2019-11-10 22:09:54 -05:00
1 parent 679fad7b18
commit d53ed61064
2 files changed
+18 -13

No files matched your search

@@ -415,8 +415,8 @@ public class NpcHandler {
Client client = (Client) PlayerHandler.players[NpcData.getCloseRandomPlayer(i)];
if (client != null) {
boolean aggressive = (NpcAggressive.isAggressive(i) && getNpcListCombat(npcs[i].npcType) * 2 > client.combatLevel) || npcs[i].inWild();
if (aggressive && !npcs[i].underAttack && !npcs[i].isDead) {
boolean aggressive = (NpcAggressive.isAggressive(i) || getNpcListCombat(npcs[i].npcType) * 2 > client.combatLevel);
if (aggressive && !npcs[i].underAttack && !npcs[i].isDead && npcs[i].MaxHP > 0) {
npcs[i].killerId = NpcData.getCloseRandomPlayer(i);
}
}