mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-09-28 13:12:54 -04:00
Added revives
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user