forked from github/server
Merge branch 'master' into develop
This commit is contained in:
commit
13a4388b9c
|
@ -1,6 +1,6 @@
|
|||
sudo: false
|
||||
language: c
|
||||
dist: focal
|
||||
dist: bionic
|
||||
compiler:
|
||||
- gcc
|
||||
- clang
|
||||
|
|
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue