v0.9.1: fixed an exploit with iron stomach and time freeze
This commit is contained in:
@@ -177,7 +177,9 @@ public enum Talent {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (hero.hasTalent(IRON_STOMACH)){
|
if (hero.hasTalent(IRON_STOMACH)){
|
||||||
Buff.affect(hero, WarriorFoodImmunity.class, 1f);
|
if (hero.cooldown() > 0) {
|
||||||
|
Buff.affect(hero, WarriorFoodImmunity.class, hero.cooldown());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (hero.hasTalent(EMPOWERING_MEAL)){
|
if (hero.hasTalent(EMPOWERING_MEAL)){
|
||||||
//2/3 bonus wand damage for next 3 zaps
|
//2/3 bonus wand damage for next 3 zaps
|
||||||
|
|||||||
@@ -74,8 +74,6 @@ public class Food extends Item {
|
|||||||
satisfy(hero);
|
satisfy(hero);
|
||||||
GLog.i( message );
|
GLog.i( message );
|
||||||
|
|
||||||
Talent.onFoodEaten(hero, energy, this);
|
|
||||||
|
|
||||||
hero.sprite.operate( hero.pos );
|
hero.sprite.operate( hero.pos );
|
||||||
hero.busy();
|
hero.busy();
|
||||||
SpellSprite.show( hero, SpellSprite.FOOD );
|
SpellSprite.show( hero, SpellSprite.FOOD );
|
||||||
@@ -83,6 +81,8 @@ public class Food extends Item {
|
|||||||
|
|
||||||
hero.spend( eatingTime() );
|
hero.spend( eatingTime() );
|
||||||
|
|
||||||
|
Talent.onFoodEaten(hero, energy, this);
|
||||||
|
|
||||||
Statistics.foodEaten++;
|
Statistics.foodEaten++;
|
||||||
Badges.validateFoodEaten();
|
Badges.validateFoodEaten();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user