forked from github/server
Merge remote-tracking branch 'upstream/master'
This commit is contained in:
commit
a1fbfd5bb1
2
s/build
2
s/build
|
@ -35,7 +35,7 @@ git submodule update
|
||||||
echo "build eressea"
|
echo "build eressea"
|
||||||
cd $ROOT/$BUILD
|
cd $ROOT/$BUILD
|
||||||
BRANCH=$(git status -s -b | head -1 | cut -d\ -f 2 | sed 's/\..*//')
|
BRANCH=$(git status -s -b | head -1 | cut -d\ -f 2 | sed 's/\..*//')
|
||||||
if [ "$BRANCH" == "master" ] ; then
|
if [ "$BRANCH"=="master" ] ; then
|
||||||
VERSION=$(git describe --match 'v*.*.*' --tags | sed 's/^v//')
|
VERSION=$(git describe --match 'v*.*.*' --tags | sed 's/^v//')
|
||||||
cmake -DERESSEA_VERSION="$VERSION" ..
|
cmake -DERESSEA_VERSION="$VERSION" ..
|
||||||
else
|
else
|
||||||
|
|
|
@ -1240,6 +1240,9 @@ target_resists_magic(unit * magician, void *obj, int objtyp, int t_bonus)
|
||||||
skill *sv;
|
skill *sv;
|
||||||
unit *u = (unit *)obj;
|
unit *u = (unit *)obj;
|
||||||
|
|
||||||
|
if (u_race(u)==get_race(RC_SPELL)) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
at = effskill(magician, SK_MAGIC, 0);
|
at = effskill(magician, SK_MAGIC, 0);
|
||||||
|
|
||||||
for (sv = u->skills; sv != u->skills + u->skill_size; ++sv) {
|
for (sv = u->skills; sv != u->skills + u->skill_size; ++sv) {
|
||||||
|
|
Loading…
Reference in New Issue