v0.6.1b: fixed magical sleep applying when the enemy is sleep immune
This commit is contained in:
parent
51ec4a4039
commit
6a7c063893
|
@ -34,7 +34,7 @@ public class MagicalSleep extends Buff {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
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 (target instanceof Hero)
|
if (target instanceof Hero)
|
||||||
if (target.HP == target.HT) {
|
if (target.HP == target.HT) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user