v0.3.1: quickslots now autotarget if there is only one visible enemy.

This commit is contained in:
Evan Debenham 2015-07-14 21:24:23 -04:00 committed by Evan Debenham
parent 8c96647743
commit 3cd86934bd

View File

@ -103,6 +103,7 @@ import com.shatteredpixel.shatteredpixeldungeon.sprites.CharSprite;
import com.shatteredpixel.shatteredpixeldungeon.sprites.HeroSprite;
import com.shatteredpixel.shatteredpixeldungeon.ui.AttackIndicator;
import com.shatteredpixel.shatteredpixeldungeon.ui.BuffIndicator;
import com.shatteredpixel.shatteredpixeldungeon.ui.QuickSlotButton;
import com.shatteredpixel.shatteredpixeldungeon.utils.GLog;
import com.shatteredpixel.shatteredpixeldungeon.windows.WndMessage;
import com.shatteredpixel.shatteredpixeldungeon.windows.WndResurrect;
@ -952,6 +953,10 @@ public class Hero extends Char {
}
}
if (visible.size() == 1){
QuickSlotButton.target(visible.get(0));
}
if (newMob) {
interrupt();
restoreHealth = false;