mirror of
https://github.com/2006-Scape/2006Scape.git
synced 2026-07-06 16:49:07 +00:00
Fix call to NpcAggressive.isAggressive (#472)
This commit is contained in:
@@ -557,7 +557,7 @@ public class NpcHandler {
|
|||||||
|
|
||||||
Player client = (Client) PlayerHandler.players[NpcData.getCloseRandomPlayer(i)];
|
Player client = (Client) PlayerHandler.players[NpcData.getCloseRandomPlayer(i)];
|
||||||
if (client != null) {
|
if (client != null) {
|
||||||
boolean aggressive = (NpcAggressive.isAggressive(npcs[i].npcType) || getNpcListCombat(npcs[i].npcType) * 2 > client.combatLevel && getNpcListAggressive(npcs[i].npcType));
|
boolean aggressive = (NpcAggressive.isAggressive(i) || getNpcListCombat(npcs[i].npcType) * 2 > client.combatLevel && getNpcListAggressive(npcs[i].npcType));
|
||||||
if (aggressive && !npcs[i].underAttack && !npcs[i].isDead && npcs[i].MaxHP > 0) {
|
if (aggressive && !npcs[i].underAttack && !npcs[i].isDead && npcs[i].MaxHP > 0) {
|
||||||
npcs[i].killerId = NpcData.getCloseRandomPlayer(i);
|
npcs[i].killerId = NpcData.getCloseRandomPlayer(i);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user