v0.6.1b: fixed magical sleep applying when the enemy is sleep immune

This commit is contained in:
Evan Debenham 2017-08-23 00:59:56 -04:00
parent 51ec4a4039
commit 6a7c063893

View File

@ -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) {