mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-07-28 23:15:53 -04:00
Fixed #0000063
- 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:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user