v0.2.3: bugfix with drowsy buff
This commit is contained in:
parent
bded42981f
commit
0046ee88e7
|
@ -29,7 +29,7 @@ public class Drowsy extends Buff {
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean attachTo( Char target ) {
|
public boolean attachTo( Char target ) {
|
||||||
if (super.attachTo(target) && !target.immunities().contains(Sleep.class)) {
|
if (!target.immunities().contains(Sleep.class) && super.attachTo(target)) {
|
||||||
if (cooldown() == 0)
|
if (cooldown() == 0)
|
||||||
spend(Random.Int(3, 6));
|
spend(Random.Int(3, 6));
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user