Bug 1755 Beschworene Skelette mit Ausdauerproblemen

Sowohl Beschworenen Untote als auch Monster (Drachen, für Monster-Untote
war es Ok) hatten keine Anpassung ihrer Max-HP nach der Zuweisung von
Skills.
This commit is contained in:
CTD 2014-07-18 13:15:18 +02:00
parent 4506bff522
commit 4cfa1ec7c3
2 changed files with 2 additions and 0 deletions

View File

@ -139,6 +139,7 @@ void equip_unit_mask(struct unit *u, const struct equipment *eq, int mask)
set_level(u, (skill_t)sk, i);
}
}
u->hp = unit_max_hp(u) * u->number; // Bring the unit to max HitPoints just for the case stamina was changed
}
if (mask & EQUIP_SPELLS) {

View File

@ -3235,6 +3235,7 @@ static void skill_summoned(unit * u, int level)
}
}
}
u->hp = unit_max_hp(u) * u->number; // Bring the unit to max HitPoints just for the case stamina was changed
}
/* ------------------------------------------------------------- */