forked from github/server
das führte dazu, das Drachen nicht auf dem Ozean heilen
sind noch mehr fehler drin
This commit is contained in:
parent
58fa996a65
commit
84c9609e25
|
@ -3197,10 +3197,11 @@ monthly_healing(void)
|
||||||
for (u = r->units; u; u = u->next) {
|
for (u = r->units; u; u = u->next) {
|
||||||
int umhp;
|
int umhp;
|
||||||
|
|
||||||
|
/* dann wirkt bei Untoten das Elixier der Macht ewig */
|
||||||
if((u->race->flags & RCF_NOHEAL) || fval(u, FL_HUNGER) || fspecial(u->faction, FS_UNDEAD))
|
if((u->race->flags & RCF_NOHEAL) || fval(u, FL_HUNGER) || fspecial(u->faction, FS_UNDEAD))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if(rterrain(r) == T_OCEAN && !u->ship && !(u->race->flags & RCF_SWIM))
|
if(rterrain(r) == T_OCEAN && !u->ship && !(canswim(u)))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
umhp = unit_max_hp(u) * u->number;
|
umhp = unit_max_hp(u) * u->number;
|
||||||
|
|
Loading…
Reference in New Issue