Merge branch 'master' into develop

This commit is contained in:
Enno Rehling 2021-05-01 22:03:31 +02:00
commit 13a4388b9c
2 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
sudo: false
language: c
dist: focal
dist: bionic
compiler:
- gcc
- clang

View File

@ -1037,7 +1037,7 @@ variant magic_resistance(const unit * target)
c = (curse *)a->data.v;
mage = c->magician;
if (mage != NULL) {
if (mage != NULL && mage->number > 0) {
if (good_resist && c->type == &ct_goodmagicresistancezone) {
if (alliedunit(mage, target->faction, HELP_GUARD)) {
/* TODO: legacy. magicresistance-effect is an integer-percentage stored in a double */