Merge remote-tracking branch 'origin/master'

This commit is contained in:
Evan Debenham
2014-08-15 09:11:47 -04:00
8 changed files with 38 additions and 15 deletions
@@ -128,7 +128,7 @@ public class Blandfruit extends Food {
potionAttrib instanceof PotionOfParalyticGas ||
potionAttrib instanceof PotionOfFrost){
potionAttrib.execute(hero, action);
detach( hero.belongings.backpack );
//detaches in Potion.cast, this is an awkward workaround due to throwing being on a different thread.
} else {
super.execute(hero, action);
}
@@ -154,6 +154,7 @@ public class Blandfruit extends Food {
try {
potionAttrib = (Potion)plant.newInstance();
potionAttrib.ownedByFruit = true;
} catch (Exception e) {
return null;
}