Minor heal fix

This commit is contained in:
Light2
2013-09-23 15:43:28 +02:00
parent 2f7c2290df
commit c318beb6af
+3 -3
View File
@@ -757,14 +757,14 @@ public class CombatService implements INetworkDispatch {
boolean success = true;
if(target.getMaxHealth() == target.getHealth())
success = command.getAttackType() != 1;
if(!applySpecialCost(healer, weapon, command))
success = false;
if((command.getAttackType() == 0 || command.getAttackType() == 1 || command.getAttackType() == 3) && !attemptHeal(healer, target))
success = false;
if(target.getMaxHealth() == target.getHealth())
success = command.getAttackType() != 1;
if(!success) {
IoSession session = healer.getClient().getSession();