be nice to your friends, but not your enemies

This commit is contained in:
Enno Rehling 2011-06-05 12:21:49 -07:00
parent cc870c076c
commit 21b8ab2d31
1 changed files with 1 additions and 1 deletions

View File

@ -1165,7 +1165,7 @@ double magic_resistance(unit * target)
ct_goodresist = 0; /* only one effect per region */
}
} else if (ct_badresist && c->type == ct_badresist) {
if (alliedunit(mage, target->faction, HELP_GUARD)) {
if (!alliedunit(mage, target->faction, HELP_GUARD)) {
probability -= curse_geteffect(c) * 0.01;
ct_badresist = 0; /* only one effect per region */
}