Added Heal Over Time buffs, finished most of commando except kill meter and some abilities

This commit is contained in:
Light2
2013-11-25 22:10:33 +01:00
parent 23aeb02249
commit bb085477c4
26 changed files with 447 additions and 38 deletions
+6 -1
View File
@@ -168,7 +168,7 @@ public class CommandService implements INetworkDispatch {
//if((command.getHitType() == 5 || command.getHitType() == 7) && !(target instanceof CreatureObject))
// success = false;
if(!(command.getAttackType() == 2) && !(command.getHitType() == 5)) {
if(!(command.getAttackType() == 2) && !(command.getHitType() == 5) && !(command.getHitType() == 0)) {
if(target == null || !(target instanceof TangibleObject) || target == attacker)
success = false;
} else {
@@ -245,6 +245,11 @@ public class CommandService implements INetworkDispatch {
core.combatService.doRevive(attacker, (CreatureObject) target, weapon, command, actionCounter);
return;
}
if(command.getHitType() == 0 && command.getBuffNameSelf().length() > 0) {
core.combatService.doSelfBuff(attacker, weapon, command, actionCounter);
return;
}
core.combatService.doCombat(attacker, (TangibleObject) target, weapon, command, actionCounter);
}