- Fixed: Incap timer reset to 10s
-Fixed NPC AI not deathblowing when it should
- Added: NPCs now engage factional enemies
This commit is contained in:
CharonInferar
2014-07-12 03:04:32 +02:00
parent 3cf0f610e9
commit 6d91b28eb9
6 changed files with 110 additions and 9 deletions
+8
View File
@@ -853,6 +853,14 @@ public class CombatService implements INetworkDispatch {
return;
}
if (!attacker.isPlayer()){
AIActor aiActor = (AIActor)attacker.getAttachment("AI");
if (aiActor.getMobileTemplate().isDeathblow()){
deathblowPlayer(attacker, target);
return;
}
}
synchronized(target.getMutex()) {
if (core.mountService.isMounted(target)) {
core.mountService.dismount(target, (CreatureObject) target.getContainer());