mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-08-02 03:15:52 -04:00
Fixed null error when NPCs use combat cmd
This commit is contained in:
@@ -1329,7 +1329,7 @@ public class CombatService implements INetworkDispatch {
|
||||
if(!applySpecialCost(creature, weapon, command))
|
||||
success = false;
|
||||
|
||||
if(!success) {
|
||||
if(!success && creature.getClient() != null) {
|
||||
IoSession session = creature.getClient().getSession();
|
||||
CommandEnqueueRemove commandRemove = new CommandEnqueueRemove(creature.getObjectId(), actionCounter);
|
||||
session.write(new ObjControllerMessage(0x0B, commandRemove).serialize());
|
||||
|
||||
Reference in New Issue
Block a user