Fixed null error when NPCs use combat cmd

This commit is contained in:
Treeku
2014-06-18 08:56:54 +01:00
parent 8fd5a7fbf6
commit a5933c2db6
+1 -1
View File
@@ -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());