Initial aggro value should be 0.
This commit is contained in:
@@ -398,7 +398,7 @@ public class AttackableAI extends CreatureAI
|
|||||||
final int hating = npc.getHating(t);
|
final int hating = npc.getHating(t);
|
||||||
if (hating == 0)
|
if (hating == 0)
|
||||||
{
|
{
|
||||||
npc.addDamageHate(t, 0, 1);
|
npc.addDamageHate(t, 0, 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -416,7 +416,7 @@ public class AttackableAI extends CreatureAI
|
|||||||
// Add the attacker to the Attackable _aggroList with 0 damage and 1 hate
|
// Add the attacker to the Attackable _aggroList with 0 damage and 1 hate
|
||||||
if (hating == 0)
|
if (hating == 0)
|
||||||
{
|
{
|
||||||
npc.addDamageHate(t, 0, 1);
|
npc.addDamageHate(t, 0, 0);
|
||||||
}
|
}
|
||||||
if (npc instanceof GuardInstance)
|
if (npc instanceof GuardInstance)
|
||||||
{
|
{
|
||||||
|
@@ -398,7 +398,7 @@ public class AttackableAI extends CreatureAI
|
|||||||
final int hating = npc.getHating(t);
|
final int hating = npc.getHating(t);
|
||||||
if (hating == 0)
|
if (hating == 0)
|
||||||
{
|
{
|
||||||
npc.addDamageHate(t, 0, 1);
|
npc.addDamageHate(t, 0, 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -416,7 +416,7 @@ public class AttackableAI extends CreatureAI
|
|||||||
// Add the attacker to the Attackable _aggroList with 0 damage and 1 hate
|
// Add the attacker to the Attackable _aggroList with 0 damage and 1 hate
|
||||||
if (hating == 0)
|
if (hating == 0)
|
||||||
{
|
{
|
||||||
npc.addDamageHate(t, 0, 1);
|
npc.addDamageHate(t, 0, 0);
|
||||||
}
|
}
|
||||||
if (npc instanceof GuardInstance)
|
if (npc instanceof GuardInstance)
|
||||||
{
|
{
|
||||||
|
@@ -398,7 +398,7 @@ public class AttackableAI extends CreatureAI
|
|||||||
final int hating = npc.getHating(t);
|
final int hating = npc.getHating(t);
|
||||||
if (hating == 0)
|
if (hating == 0)
|
||||||
{
|
{
|
||||||
npc.addDamageHate(t, 0, 1);
|
npc.addDamageHate(t, 0, 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -416,7 +416,7 @@ public class AttackableAI extends CreatureAI
|
|||||||
// Add the attacker to the Attackable _aggroList with 0 damage and 1 hate
|
// Add the attacker to the Attackable _aggroList with 0 damage and 1 hate
|
||||||
if (hating == 0)
|
if (hating == 0)
|
||||||
{
|
{
|
||||||
npc.addDamageHate(t, 0, 1);
|
npc.addDamageHate(t, 0, 0);
|
||||||
}
|
}
|
||||||
if (npc instanceof GuardInstance)
|
if (npc instanceof GuardInstance)
|
||||||
{
|
{
|
||||||
|
@@ -398,7 +398,7 @@ public class AttackableAI extends CreatureAI
|
|||||||
final int hating = npc.getHating(t);
|
final int hating = npc.getHating(t);
|
||||||
if (hating == 0)
|
if (hating == 0)
|
||||||
{
|
{
|
||||||
npc.addDamageHate(t, 0, 1);
|
npc.addDamageHate(t, 0, 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -416,7 +416,7 @@ public class AttackableAI extends CreatureAI
|
|||||||
// Add the attacker to the Attackable _aggroList with 0 damage and 1 hate
|
// Add the attacker to the Attackable _aggroList with 0 damage and 1 hate
|
||||||
if (hating == 0)
|
if (hating == 0)
|
||||||
{
|
{
|
||||||
npc.addDamageHate(t, 0, 1);
|
npc.addDamageHate(t, 0, 0);
|
||||||
}
|
}
|
||||||
if (npc instanceof GuardInstance)
|
if (npc instanceof GuardInstance)
|
||||||
{
|
{
|
||||||
|
@@ -398,7 +398,7 @@ public class AttackableAI extends CreatureAI
|
|||||||
final int hating = npc.getHating(t);
|
final int hating = npc.getHating(t);
|
||||||
if (hating == 0)
|
if (hating == 0)
|
||||||
{
|
{
|
||||||
npc.addDamageHate(t, 0, 1);
|
npc.addDamageHate(t, 0, 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -416,7 +416,7 @@ public class AttackableAI extends CreatureAI
|
|||||||
// Add the attacker to the Attackable _aggroList with 0 damage and 1 hate
|
// Add the attacker to the Attackable _aggroList with 0 damage and 1 hate
|
||||||
if (hating == 0)
|
if (hating == 0)
|
||||||
{
|
{
|
||||||
npc.addDamageHate(t, 0, 1);
|
npc.addDamageHate(t, 0, 0);
|
||||||
}
|
}
|
||||||
if (npc instanceof GuardInstance)
|
if (npc instanceof GuardInstance)
|
||||||
{
|
{
|
||||||
|
@@ -398,7 +398,7 @@ public class AttackableAI extends CreatureAI
|
|||||||
final int hating = npc.getHating(t);
|
final int hating = npc.getHating(t);
|
||||||
if (hating == 0)
|
if (hating == 0)
|
||||||
{
|
{
|
||||||
npc.addDamageHate(t, 0, 1);
|
npc.addDamageHate(t, 0, 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -416,7 +416,7 @@ public class AttackableAI extends CreatureAI
|
|||||||
// Add the attacker to the Attackable _aggroList with 0 damage and 1 hate
|
// Add the attacker to the Attackable _aggroList with 0 damage and 1 hate
|
||||||
if (hating == 0)
|
if (hating == 0)
|
||||||
{
|
{
|
||||||
npc.addDamageHate(t, 0, 1);
|
npc.addDamageHate(t, 0, 0);
|
||||||
}
|
}
|
||||||
if (npc instanceof GuardInstance)
|
if (npc instanceof GuardInstance)
|
||||||
{
|
{
|
||||||
|
@@ -398,7 +398,7 @@ public class AttackableAI extends CreatureAI
|
|||||||
final int hating = npc.getHating(t);
|
final int hating = npc.getHating(t);
|
||||||
if (hating == 0)
|
if (hating == 0)
|
||||||
{
|
{
|
||||||
npc.addDamageHate(t, 0, 1);
|
npc.addDamageHate(t, 0, 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -416,7 +416,7 @@ public class AttackableAI extends CreatureAI
|
|||||||
// Add the attacker to the Attackable _aggroList with 0 damage and 1 hate
|
// Add the attacker to the Attackable _aggroList with 0 damage and 1 hate
|
||||||
if (hating == 0)
|
if (hating == 0)
|
||||||
{
|
{
|
||||||
npc.addDamageHate(t, 0, 1);
|
npc.addDamageHate(t, 0, 0);
|
||||||
}
|
}
|
||||||
if (npc instanceof GuardInstance)
|
if (npc instanceof GuardInstance)
|
||||||
{
|
{
|
||||||
|
@@ -398,7 +398,7 @@ public class AttackableAI extends CreatureAI
|
|||||||
final int hating = npc.getHating(t);
|
final int hating = npc.getHating(t);
|
||||||
if (hating == 0)
|
if (hating == 0)
|
||||||
{
|
{
|
||||||
npc.addDamageHate(t, 0, 1);
|
npc.addDamageHate(t, 0, 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -416,7 +416,7 @@ public class AttackableAI extends CreatureAI
|
|||||||
// Add the attacker to the Attackable _aggroList with 0 damage and 1 hate
|
// Add the attacker to the Attackable _aggroList with 0 damage and 1 hate
|
||||||
if (hating == 0)
|
if (hating == 0)
|
||||||
{
|
{
|
||||||
npc.addDamageHate(t, 0, 1);
|
npc.addDamageHate(t, 0, 0);
|
||||||
}
|
}
|
||||||
if (npc instanceof GuardInstance)
|
if (npc instanceof GuardInstance)
|
||||||
{
|
{
|
||||||
|
@@ -398,7 +398,7 @@ public class AttackableAI extends CreatureAI
|
|||||||
final int hating = npc.getHating(t);
|
final int hating = npc.getHating(t);
|
||||||
if (hating == 0)
|
if (hating == 0)
|
||||||
{
|
{
|
||||||
npc.addDamageHate(t, 0, 1);
|
npc.addDamageHate(t, 0, 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -416,7 +416,7 @@ public class AttackableAI extends CreatureAI
|
|||||||
// Add the attacker to the Attackable _aggroList with 0 damage and 1 hate
|
// Add the attacker to the Attackable _aggroList with 0 damage and 1 hate
|
||||||
if (hating == 0)
|
if (hating == 0)
|
||||||
{
|
{
|
||||||
npc.addDamageHate(t, 0, 1);
|
npc.addDamageHate(t, 0, 0);
|
||||||
}
|
}
|
||||||
if (npc instanceof GuardInstance)
|
if (npc instanceof GuardInstance)
|
||||||
{
|
{
|
||||||
|
@@ -398,7 +398,7 @@ public class AttackableAI extends CreatureAI
|
|||||||
final int hating = npc.getHating(t);
|
final int hating = npc.getHating(t);
|
||||||
if (hating == 0)
|
if (hating == 0)
|
||||||
{
|
{
|
||||||
npc.addDamageHate(t, 0, 1);
|
npc.addDamageHate(t, 0, 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -416,7 +416,7 @@ public class AttackableAI extends CreatureAI
|
|||||||
// Add the attacker to the Attackable _aggroList with 0 damage and 1 hate
|
// Add the attacker to the Attackable _aggroList with 0 damage and 1 hate
|
||||||
if (hating == 0)
|
if (hating == 0)
|
||||||
{
|
{
|
||||||
npc.addDamageHate(t, 0, 1);
|
npc.addDamageHate(t, 0, 0);
|
||||||
}
|
}
|
||||||
if (npc instanceof GuardInstance)
|
if (npc instanceof GuardInstance)
|
||||||
{
|
{
|
||||||
|
@@ -549,7 +549,7 @@ public class AttackableAI extends CreatureAI
|
|||||||
final int hating = npc.getHating(target);
|
final int hating = npc.getHating(target);
|
||||||
if (hating == 0)
|
if (hating == 0)
|
||||||
{
|
{
|
||||||
npc.addDamageHate(target, 0, 1);
|
npc.addDamageHate(target, 0, 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
@@ -565,7 +565,7 @@ public class AttackableAI extends CreatureAI
|
|||||||
|
|
||||||
if (npc.getHating(target) == 0)
|
if (npc.getHating(target) == 0)
|
||||||
{
|
{
|
||||||
npc.addDamageHate(target, 0, 1);
|
npc.addDamageHate(target, 0, 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@@ -549,7 +549,7 @@ public class AttackableAI extends CreatureAI
|
|||||||
final int hating = npc.getHating(target);
|
final int hating = npc.getHating(target);
|
||||||
if (hating == 0)
|
if (hating == 0)
|
||||||
{
|
{
|
||||||
npc.addDamageHate(target, 0, 1);
|
npc.addDamageHate(target, 0, 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
@@ -565,7 +565,7 @@ public class AttackableAI extends CreatureAI
|
|||||||
|
|
||||||
if (npc.getHating(target) == 0)
|
if (npc.getHating(target) == 0)
|
||||||
{
|
{
|
||||||
npc.addDamageHate(target, 0, 1);
|
npc.addDamageHate(target, 0, 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@@ -398,7 +398,7 @@ public class AttackableAI extends CreatureAI
|
|||||||
final int hating = npc.getHating(t);
|
final int hating = npc.getHating(t);
|
||||||
if (hating == 0)
|
if (hating == 0)
|
||||||
{
|
{
|
||||||
npc.addDamageHate(t, 0, 1);
|
npc.addDamageHate(t, 0, 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -416,7 +416,7 @@ public class AttackableAI extends CreatureAI
|
|||||||
// Add the attacker to the Attackable _aggroList with 0 damage and 1 hate
|
// Add the attacker to the Attackable _aggroList with 0 damage and 1 hate
|
||||||
if (hating == 0)
|
if (hating == 0)
|
||||||
{
|
{
|
||||||
npc.addDamageHate(t, 0, 1);
|
npc.addDamageHate(t, 0, 0);
|
||||||
}
|
}
|
||||||
if (npc instanceof GuardInstance)
|
if (npc instanceof GuardInstance)
|
||||||
{
|
{
|
||||||
|
@@ -398,7 +398,7 @@ public class AttackableAI extends CreatureAI
|
|||||||
final int hating = npc.getHating(t);
|
final int hating = npc.getHating(t);
|
||||||
if (hating == 0)
|
if (hating == 0)
|
||||||
{
|
{
|
||||||
npc.addDamageHate(t, 0, 1);
|
npc.addDamageHate(t, 0, 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -416,7 +416,7 @@ public class AttackableAI extends CreatureAI
|
|||||||
// Add the attacker to the Attackable _aggroList with 0 damage and 1 hate
|
// Add the attacker to the Attackable _aggroList with 0 damage and 1 hate
|
||||||
if (hating == 0)
|
if (hating == 0)
|
||||||
{
|
{
|
||||||
npc.addDamageHate(t, 0, 1);
|
npc.addDamageHate(t, 0, 0);
|
||||||
}
|
}
|
||||||
if (npc instanceof GuardInstance)
|
if (npc instanceof GuardInstance)
|
||||||
{
|
{
|
||||||
|
@@ -398,7 +398,7 @@ public class AttackableAI extends CreatureAI
|
|||||||
final int hating = npc.getHating(t);
|
final int hating = npc.getHating(t);
|
||||||
if (hating == 0)
|
if (hating == 0)
|
||||||
{
|
{
|
||||||
npc.addDamageHate(t, 0, 1);
|
npc.addDamageHate(t, 0, 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -416,7 +416,7 @@ public class AttackableAI extends CreatureAI
|
|||||||
// Add the attacker to the Attackable _aggroList with 0 damage and 1 hate
|
// Add the attacker to the Attackable _aggroList with 0 damage and 1 hate
|
||||||
if (hating == 0)
|
if (hating == 0)
|
||||||
{
|
{
|
||||||
npc.addDamageHate(t, 0, 1);
|
npc.addDamageHate(t, 0, 0);
|
||||||
}
|
}
|
||||||
if (npc instanceof GuardInstance)
|
if (npc instanceof GuardInstance)
|
||||||
{
|
{
|
||||||
|
@@ -398,7 +398,7 @@ public class AttackableAI extends CreatureAI
|
|||||||
final int hating = npc.getHating(t);
|
final int hating = npc.getHating(t);
|
||||||
if (hating == 0)
|
if (hating == 0)
|
||||||
{
|
{
|
||||||
npc.addDamageHate(t, 0, 1);
|
npc.addDamageHate(t, 0, 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -416,7 +416,7 @@ public class AttackableAI extends CreatureAI
|
|||||||
// Add the attacker to the Attackable _aggroList with 0 damage and 1 hate
|
// Add the attacker to the Attackable _aggroList with 0 damage and 1 hate
|
||||||
if (hating == 0)
|
if (hating == 0)
|
||||||
{
|
{
|
||||||
npc.addDamageHate(t, 0, 1);
|
npc.addDamageHate(t, 0, 0);
|
||||||
}
|
}
|
||||||
if (npc instanceof GuardInstance)
|
if (npc instanceof GuardInstance)
|
||||||
{
|
{
|
||||||
|
@@ -398,7 +398,7 @@ public class AttackableAI extends CreatureAI
|
|||||||
final int hating = npc.getHating(t);
|
final int hating = npc.getHating(t);
|
||||||
if (hating == 0)
|
if (hating == 0)
|
||||||
{
|
{
|
||||||
npc.addDamageHate(t, 0, 1);
|
npc.addDamageHate(t, 0, 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -416,7 +416,7 @@ public class AttackableAI extends CreatureAI
|
|||||||
// Add the attacker to the Attackable _aggroList with 0 damage and 1 hate
|
// Add the attacker to the Attackable _aggroList with 0 damage and 1 hate
|
||||||
if (hating == 0)
|
if (hating == 0)
|
||||||
{
|
{
|
||||||
npc.addDamageHate(t, 0, 1);
|
npc.addDamageHate(t, 0, 0);
|
||||||
}
|
}
|
||||||
if (npc instanceof GuardInstance)
|
if (npc instanceof GuardInstance)
|
||||||
{
|
{
|
||||||
|
@@ -398,7 +398,7 @@ public class AttackableAI extends CreatureAI
|
|||||||
final int hating = npc.getHating(t);
|
final int hating = npc.getHating(t);
|
||||||
if (hating == 0)
|
if (hating == 0)
|
||||||
{
|
{
|
||||||
npc.addDamageHate(t, 0, 1);
|
npc.addDamageHate(t, 0, 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -416,7 +416,7 @@ public class AttackableAI extends CreatureAI
|
|||||||
// Add the attacker to the Attackable _aggroList with 0 damage and 1 hate
|
// Add the attacker to the Attackable _aggroList with 0 damage and 1 hate
|
||||||
if (hating == 0)
|
if (hating == 0)
|
||||||
{
|
{
|
||||||
npc.addDamageHate(t, 0, 1);
|
npc.addDamageHate(t, 0, 0);
|
||||||
}
|
}
|
||||||
if (npc instanceof GuardInstance)
|
if (npc instanceof GuardInstance)
|
||||||
{
|
{
|
||||||
|
@@ -398,7 +398,7 @@ public class AttackableAI extends CreatureAI
|
|||||||
final int hating = npc.getHating(t);
|
final int hating = npc.getHating(t);
|
||||||
if (hating == 0)
|
if (hating == 0)
|
||||||
{
|
{
|
||||||
npc.addDamageHate(t, 0, 1);
|
npc.addDamageHate(t, 0, 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -416,7 +416,7 @@ public class AttackableAI extends CreatureAI
|
|||||||
// Add the attacker to the Attackable _aggroList with 0 damage and 1 hate
|
// Add the attacker to the Attackable _aggroList with 0 damage and 1 hate
|
||||||
if (hating == 0)
|
if (hating == 0)
|
||||||
{
|
{
|
||||||
npc.addDamageHate(t, 0, 1);
|
npc.addDamageHate(t, 0, 0);
|
||||||
}
|
}
|
||||||
if (npc instanceof GuardInstance)
|
if (npc instanceof GuardInstance)
|
||||||
{
|
{
|
||||||
|
@@ -398,7 +398,7 @@ public class AttackableAI extends CreatureAI
|
|||||||
final int hating = npc.getHating(t);
|
final int hating = npc.getHating(t);
|
||||||
if (hating == 0)
|
if (hating == 0)
|
||||||
{
|
{
|
||||||
npc.addDamageHate(t, 0, 1);
|
npc.addDamageHate(t, 0, 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -416,7 +416,7 @@ public class AttackableAI extends CreatureAI
|
|||||||
// Add the attacker to the Attackable _aggroList with 0 damage and 1 hate
|
// Add the attacker to the Attackable _aggroList with 0 damage and 1 hate
|
||||||
if (hating == 0)
|
if (hating == 0)
|
||||||
{
|
{
|
||||||
npc.addDamageHate(t, 0, 1);
|
npc.addDamageHate(t, 0, 0);
|
||||||
}
|
}
|
||||||
if (npc instanceof GuardInstance)
|
if (npc instanceof GuardInstance)
|
||||||
{
|
{
|
||||||
|
@@ -398,7 +398,7 @@ public class AttackableAI extends CreatureAI
|
|||||||
final int hating = npc.getHating(t);
|
final int hating = npc.getHating(t);
|
||||||
if (hating == 0)
|
if (hating == 0)
|
||||||
{
|
{
|
||||||
npc.addDamageHate(t, 0, 1);
|
npc.addDamageHate(t, 0, 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -416,7 +416,7 @@ public class AttackableAI extends CreatureAI
|
|||||||
// Add the attacker to the Attackable _aggroList with 0 damage and 1 hate
|
// Add the attacker to the Attackable _aggroList with 0 damage and 1 hate
|
||||||
if (hating == 0)
|
if (hating == 0)
|
||||||
{
|
{
|
||||||
npc.addDamageHate(t, 0, 1);
|
npc.addDamageHate(t, 0, 0);
|
||||||
}
|
}
|
||||||
if (npc instanceof GuardInstance)
|
if (npc instanceof GuardInstance)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user