V0.1.1: cleaned up drowsy messages
This commit is contained in:
parent
faa9140e05
commit
8244010821
|
@ -35,10 +35,18 @@ public class Drowsy extends Buff {
|
||||||
@Override
|
@Override
|
||||||
public boolean act(){
|
public boolean act(){
|
||||||
if (placed) {
|
if (placed) {
|
||||||
Buff.affect(target, MagicalSleep.class);
|
|
||||||
if (target instanceof Hero)
|
if (target instanceof Hero)
|
||||||
GLog.i("You fall into a deep magical sleep.");
|
if (target.HP == target.HT) {
|
||||||
|
GLog.i("You are too healthy, and resist the urge to sleep.");
|
||||||
detach();
|
detach();
|
||||||
|
} else {
|
||||||
|
GLog.i("You fall into a deep magical sleep.");
|
||||||
|
Buff.affect(target, MagicalSleep.class);
|
||||||
|
detach();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
Buff.affect(target, MagicalSleep.class);
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
placed = true;
|
placed = true;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user