V0.1.1: fixed bugs and cleaned up some effects.
This commit is contained in:
@@ -125,7 +125,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);
|
||||
}
|
||||
@@ -151,6 +151,7 @@ public class Blandfruit extends Food {
|
||||
|
||||
try {
|
||||
potionAttrib = (Potion)plant.newInstance();
|
||||
potionAttrib.ownedByFruit = true;
|
||||
} catch (Exception e) {
|
||||
return null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user