forked from github/server
crashbug deathcloud-ageing if target-unit has number=0
This commit is contained in:
parent
bb5aa58454
commit
b02bf2578c
|
@ -3203,7 +3203,7 @@ dc_age(struct curse * c)
|
||||||
double damage = c->effect.f * u->number;
|
double damage = c->effect.f * u->number;
|
||||||
|
|
||||||
freset(u->faction, FL_DH);
|
freset(u->faction, FL_DH);
|
||||||
if (target_resists_magic(mage, u, TYP_UNIT, 0)){
|
if (u->number<=0 || target_resists_magic(mage, u, TYP_UNIT, 0)) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue