Added revives

This commit is contained in:
Light2
2013-09-27 21:26:02 +02:00
parent 0b503dafec
commit 479954f1c2
3 changed files with 100 additions and 0 deletions
+8
View File
@@ -181,6 +181,9 @@ public class CommandService implements INetworkDispatch {
success = false;
}
if(command.getHitType() == 7 && target.getClient() == null)
success = false;
WeaponObject weapon;
if(attacker.getWeaponId() == 0)
@@ -228,6 +231,11 @@ public class CommandService implements INetworkDispatch {
core.combatService.doHeal(attacker, (CreatureObject) target, weapon, command, actionCounter);
return;
}
if(command.getHitType() == 7) {
core.combatService.doRevive(attacker, (CreatureObject) target, weapon, command, actionCounter);
return;
}
core.combatService.doCombat(attacker, (TangibleObject) target, weapon, command, actionCounter);
}