V0.2.1: Fixed a bug with Ring of Might overhealing the player.
This commit is contained in:
parent
498cfacb39
commit
c8bbeea53b
|
@ -1102,6 +1102,7 @@ public class Hero extends Char {
|
||||||
} else if (buff instanceof RingOfMight.Might){
|
} else if (buff instanceof RingOfMight.Might){
|
||||||
if (((RingOfMight.Might)buff).level > 0){
|
if (((RingOfMight.Might)buff).level > 0){
|
||||||
HT -= ((RingOfMight.Might) buff).level * 5;
|
HT -= ((RingOfMight.Might) buff).level * 5;
|
||||||
|
HP = Math.min(HT, HP);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user