v0.4.0: reworked enchants
This commit is contained in:
@@ -53,7 +53,7 @@ public class Bleeding extends Buff {
|
||||
}
|
||||
|
||||
public void set( int level ) {
|
||||
this.level = level;
|
||||
this.level = Math.max(this.level, level);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -56,7 +56,11 @@ public class Poison extends Buff implements Hero.Doom {
|
||||
}
|
||||
|
||||
public void set( float duration ) {
|
||||
this.left = duration;
|
||||
this.left = Math.max(duration, left);
|
||||
}
|
||||
|
||||
public void extend( float duration ) {
|
||||
this.left += duration;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user