Only medics and NPCs can heal others now

This commit is contained in:
Treeku
2014-03-16 00:29:34 +00:00
parent 3152ab021c
commit 3f3d4e93fe
+6
View File
@@ -855,6 +855,12 @@ public class CombatService implements INetworkDispatch {
if(healer == target)
return true;
PlayerObject healerPo = healer.getSlottedObject("ghost");
if (healerPo != null && !healerPo.getProfession().startsWith("medic")) {
return false;
}
if (areInDuel(healer, target)) {
return false;
}