forked from MagicBane/Server
allow BH and huntsman on all but priest
This commit is contained in:
@@ -195,7 +195,9 @@ public class ObjectActionMsgHandler extends AbstractClientMsgHandler {
|
||||
}
|
||||
|
||||
hPMod = (building.getMaxHitPoints() * Realm.getRealmHealthMod(city));
|
||||
float percentOfHealth = building.getCurrentHitpoints() / building.getHealthMax();
|
||||
building.setMaxHitPoints(building.getMaxHitPoints() + hPMod);
|
||||
building.setCurrentHitPoints(building.getMaxHitPoints() * percentOfHealth);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user