"Todeswolke läßt sich nicht bannen"

fixing the detection mechanism that checks for pre-existing death clouds (they shouldn't stack).
This commit is contained in:
Enno Rehling 2006-07-28 11:57:44 +00:00
parent a421c1a31d
commit ff262fdb59
1 changed files with 11 additions and 5 deletions

View File

@ -3287,12 +3287,18 @@ sp_deathcloud(castorder *co)
{ {
region *r = co->rt; region *r = co->rt;
unit *mage = co->magician.u; unit *mage = co->magician.u;
attrib *a = r->attribs;
attrib *a = a_find(r->attribs, &at_deathcloud); while (a) {
if ((a->type->flags & ATF_CURSE)) {
if (a!=NULL) { curse * c = a->data.v;
report_failure(mage, co->order); if (c->type==&ct_deathcloud) {
return 0; report_failure(mage, co->order);
return 0;
}
a = a->next;
}
else a = a->nexttype;
} }
mk_deathcloud(mage, r, co->force, co->level); mk_deathcloud(mage, r, co->force, co->level);