forked from github/server
"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:
parent
a421c1a31d
commit
ff262fdb59
|
@ -3287,13 +3287,19 @@ 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;
|
||||||
|
if (c->type==&ct_deathcloud) {
|
||||||
report_failure(mage, co->order);
|
report_failure(mage, co->order);
|
||||||
return 0;
|
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);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue