Fixed VitalityConsumeByBoss configuration.

Contributed by nasseka.
This commit is contained in:
MobiusDevelopment
2021-07-14 13:12:49 +00:00
parent ffcbef2722
commit 47ce8c29fb
21 changed files with 21 additions and 24 deletions

View File

@ -1738,7 +1738,7 @@ public class Attackable extends Npc
*/
public int getVitalityPoints(int level, double exp, boolean isBoss)
{
if ((getLevel() <= 0) || (getExpReward() <= 0))
if ((getLevel() <= 0) || (getExpReward() <= 0) || (isBoss && (Config.VITALITY_CONSUME_BY_BOSS == 0)))
{
return 0;
}