forked from github/server
Bugfix Antimagie/create_curse
This commit is contained in:
parent
29299ba260
commit
0997aca643
|
@ -1292,7 +1292,7 @@ randomevents(void)
|
|||
|
||||
/* Vulkane qualmen, brechen aus ... */
|
||||
for (r = regions; r; r = r->next) {
|
||||
if (rterrain(r)==T_VOLCANO_SMOKING && a_find(&r->attribs, &at_reduceproduction)) {
|
||||
if (rterrain(r)==T_VOLCANO_SMOKING && a_find(r->attribs, &at_reduceproduction)) {
|
||||
ADDMSG(&r->msgs, msg_message("volcanostopsmoke", "region", r));
|
||||
rsetterrain(r, T_VOLCANO);
|
||||
} else switch(rterrain(r)) {
|
||||
|
|
|
@ -505,7 +505,7 @@ create_curse(unit *magician, attrib **ap, const curse_type *ct, int vigour,
|
|||
curse *c;
|
||||
|
||||
/* die Kraft eines Spruchs darf nicht 0 sein*/
|
||||
assert(vigour >= 0);
|
||||
assert(vigour > 0);
|
||||
|
||||
c = get_curse(*ap, ct);
|
||||
|
||||
|
|
|
@ -841,7 +841,7 @@ use_antimagiccrystal(region * r, unit * mage, int amount, strlist * cmdstrings)
|
|||
if(*ap) ap = &(*ap)->next;
|
||||
}
|
||||
|
||||
if(force) {
|
||||
if (force>0) {
|
||||
create_curse(mage, &r->attribs, ct_find("antimagiczone"), force, duration, effect, 0);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue