hy guys
when the player level up is filling life and mana full life wanted this not to happen
I looked here in the src I just found this but I don't know which line to remove
player.cpp
when the player level up is filling life and mana full life wanted this not to happen
I looked here in the src I just found this but I don't know which line to remove
player.cpp
void Player::setVarStats(stats_t stat, int32_t modifier)
{
varStats[stat] += modifier;
switch (stat) {
case STAT_MAXHITPOINTS: {
if (getHealth() > getMaxHealth()) {
Creature::changeHealth(getMaxHealth() - getHealth());
} else {
g_game.addCreatureHealth(this);
}
break;
}
case STAT_MAXMANAPOINTS: {
if (getMana() > getMaxMana()) {
Creature::changeMana(getMaxMana() - getMana());
}
break;
}
default: {
break;
}
}
}