v0.4.3b: fixed some bugs with the berserker subclass
This commit is contained in:
parent
d980a8d867
commit
965d0f04ea
|
@ -119,7 +119,7 @@ public class Berserk extends Buff {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return state == State.BERSERK;
|
return state == State.BERSERK && target.SHLD > 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void recover(float percent){
|
public void recover(float percent){
|
||||||
|
|
|
@ -1393,10 +1393,9 @@ public class Hero extends Char {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean isAlive() {
|
public boolean isAlive() {
|
||||||
if (subClass == HeroSubClass.BERSERKER
|
if (subClass == HeroSubClass.BERSERKER){
|
||||||
&& berserk != null
|
if (berserk == null) berserk = Buff.affect(this, Berserk.class);
|
||||||
&& berserk.berserking()){
|
if (berserk.berserking()) return true;
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
return super.isAlive();
|
return super.isAlive();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user