From f8365d7753a935bab19511249f32881cddc94cd8 Mon Sep 17 00:00:00 2001 From: Oliver Date: Mon, 2 May 2022 23:32:03 +0000 Subject: [PATCH] Update ActionFlat.java --- .../habbo/habbohotel/pets/actions/ActionFlat.java | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/main/java/com/eu/habbo/habbohotel/pets/actions/ActionFlat.java b/src/main/java/com/eu/habbo/habbohotel/pets/actions/ActionFlat.java index 90977f1e..4790023e 100644 --- a/src/main/java/com/eu/habbo/habbohotel/pets/actions/ActionFlat.java +++ b/src/main/java/com/eu/habbo/habbohotel/pets/actions/ActionFlat.java @@ -19,15 +19,15 @@ public class ActionFlat extends PetAction { // flat attack @Override public boolean apply(Pet pet, Habbo habbo, String[] data) { + Emulator.getThreading().run(new PetClearPosture(pet, RoomUnitStatus.FLAT, null, false), this.minimumActionDuration); + pet.say(pet.getPetData().randomVocal(PetVocalsType.GENERIC_NEUTRAL)); - if (pet.getHappyness() > 30) { - Emulator.getThreading().run(new PetClearPosture(pet, RoomUnitStatus.FLAT, null, false), this.minimumActionDuration); - pet.say(pet.getPetData().randomVocal(PetVocalsType.GENERIC_NEUTRAL)); - return true; + if (pet.getHappyness() > 80) { + pet.say(pet.getPetData().randomVocal(PetVocalsType.PLAYFUL)); } else { - pet.say(pet.getPetData().randomVocal(PetVocalsType.DISOBEY)); - return false; + pet.say(pet.getPetData().randomVocal(PetVocalsType.GENERIC_NEUTRAL)); } + + return true; } } -