forked from github/server
Merge branch 'master' into develop
This commit is contained in:
commit
13a4388b9c
|
@ -1,6 +1,6 @@
|
||||||
sudo: false
|
sudo: false
|
||||||
language: c
|
language: c
|
||||||
dist: focal
|
dist: bionic
|
||||||
compiler:
|
compiler:
|
||||||
- gcc
|
- gcc
|
||||||
- clang
|
- clang
|
||||||
|
|
|
@ -1037,7 +1037,7 @@ variant magic_resistance(const unit * target)
|
||||||
c = (curse *)a->data.v;
|
c = (curse *)a->data.v;
|
||||||
mage = c->magician;
|
mage = c->magician;
|
||||||
|
|
||||||
if (mage != NULL) {
|
if (mage != NULL && mage->number > 0) {
|
||||||
if (good_resist && c->type == &ct_goodmagicresistancezone) {
|
if (good_resist && c->type == &ct_goodmagicresistancezone) {
|
||||||
if (alliedunit(mage, target->faction, HELP_GUARD)) {
|
if (alliedunit(mage, target->faction, HELP_GUARD)) {
|
||||||
/* TODO: legacy. magicresistance-effect is an integer-percentage stored in a double */
|
/* TODO: legacy. magicresistance-effect is an integer-percentage stored in a double */
|
||||||
|
|
Loading…
Reference in New Issue