v1.2.0: fixed mystical meal setting ignoreHornOfPlenty when it shouldn't
This commit is contained in:
+4
@@ -76,6 +76,10 @@ public class ArtifactRecharge extends Buff {
|
|||||||
left += amount;
|
left += amount;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public float left(){
|
||||||
|
return left;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int icon() {
|
public int icon() {
|
||||||
|
|||||||
@@ -302,7 +302,10 @@ public enum Talent {
|
|||||||
}
|
}
|
||||||
if (hero.hasTalent(MYSTICAL_MEAL)){
|
if (hero.hasTalent(MYSTICAL_MEAL)){
|
||||||
//3/5 turns of recharging
|
//3/5 turns of recharging
|
||||||
Buff.affect( hero, ArtifactRecharge.class).set(1 + 2*(hero.pointsInTalent(MYSTICAL_MEAL))).ignoreHornOfPlenty = foodSource instanceof HornOfPlenty;
|
ArtifactRecharge buff = Buff.affect( hero, ArtifactRecharge.class);
|
||||||
|
if (buff.left() < 1 + 2*(hero.pointsInTalent(MYSTICAL_MEAL))){
|
||||||
|
Buff.affect( hero, ArtifactRecharge.class).set(1 + 2*(hero.pointsInTalent(MYSTICAL_MEAL))).ignoreHornOfPlenty = foodSource instanceof HornOfPlenty;
|
||||||
|
}
|
||||||
ScrollOfRecharging.charge( hero );
|
ScrollOfRecharging.charge( hero );
|
||||||
}
|
}
|
||||||
if (hero.hasTalent(INVIGORATING_MEAL)){
|
if (hero.hasTalent(INVIGORATING_MEAL)){
|
||||||
|
|||||||
Reference in New Issue
Block a user