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