forked from github/server
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:
parent
4506bff522
commit
4cfa1ec7c3
|
@ -139,6 +139,7 @@ void equip_unit_mask(struct unit *u, const struct equipment *eq, int mask)
|
||||||
set_level(u, (skill_t)sk, i);
|
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) {
|
if (mask & EQUIP_SPELLS) {
|
||||||
|
|
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ------------------------------------------------------------- */
|
/* ------------------------------------------------------------- */
|
||||||
|
|
Loading…
Reference in New Issue