diff --git a/.travis.yml b/.travis.yml index 7c9b85c07..53786e4a6 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,4 +1,5 @@ language: cpp +dist: trusty branches: except: - latest-master @@ -9,9 +10,9 @@ before_install: - export BUILD_Qt=YES - export BUILD_MAC=NO # Only building on Mac when not handling pull request - - if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then - export BUILD_MAC=YES; - fi +# - if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then +# export BUILD_MAC=YES; +# fi - sudo apt-get update -qq # Building for PSP here - if [ "$BUILD_PSP" == "YES" ]; then @@ -33,7 +34,7 @@ before_install: export ANDROID="android-sdk-linux/tools/android" && if [ `uname -m` = x86_64 ]; then sudo dpkg --add-architecture i386 && sudo apt-get update && - sudo apt-get install -qq --force-yes libgd2-xpm-dev libc6-i386 lib32stdc++6 lib32gcc1 lib32ncurses5 lib32z1 jq; fi && + sudo apt-get install -qq --force-yes libgd2-xpm-dev libc6-i386 lib32stdc++6 lib32gcc1 lib32ncurses5 lib32z1 jq ant; fi && wget http://dl.google.com/android/ndk/android-ndk-r9-linux-x86_64.tar.bz2 -nv && wget http://dl.google.com/android/android-sdk_r24.3.4-linux.tgz -nv; fi @@ -48,6 +49,7 @@ install: $ANDROID list sdk --extended -a && echo yes | $ANDROID update sdk -a -t tools,platform-tools,build-tools-23.0.1,android-10 --no-ui --force --no-https; fi +- sudo python -m easy_install --upgrade pyOpenSSL - sudo pip install pyjavaproperties - sudo pip install github3.py - sudo pip install cpp-coveralls diff --git a/projects/mtg/bin/Res/test/_tests.txt b/projects/mtg/bin/Res/test/_tests.txt index 1dcc987d7..73c68bab5 100644 --- a/projects/mtg/bin/Res/test/_tests.txt +++ b/projects/mtg/bin/Res/test/_tests.txt @@ -264,7 +264,6 @@ dauntless_escort.txt dauthi_embrace.txt dawn_of_the_dead.txt deadshot.txt -death_grasp.txt death_ward.txt decree_of_justice.txt defense_of_the_heart.txt @@ -739,5 +738,4 @@ momir/overcost.txt ######################## #AI Tests ######################## -ai/goblin_artillery.txt ai/proliferate_simple.txt diff --git a/projects/mtg/src/MTGAbility.cpp b/projects/mtg/src/MTGAbility.cpp index 437b4f800..999490629 100644 --- a/projects/mtg/src/MTGAbility.cpp +++ b/projects/mtg/src/MTGAbility.cpp @@ -4574,11 +4574,11 @@ int AbilityFactory::abilityEfficiency(MTGAbility * a, Player * p, int mode, Targ if (AAMover * aam = dynamic_cast(a)) { MTGGameZone * z = aam->destinationZone(target); - if ((tc && tc->targetsZone(p->game->library)) || (tc && tc->targetsZone(p->game->graveyard)) || (tc && tc->targetsZone(p->game->hand))) - { + if ((tc && tc->targetsZone(p->game->library)) || (tc && tc->targetsZone(p->game->graveyard)) || (tc && tc->targetsZone(p->game->hand))) + { if (z == p->game->hand || z == p->game->inPlay) return BAKA_EFFECT_GOOD; - } + } return BAKA_EFFECT_BAD; //TODO }