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