diff --git a/src/creatures/combat/spells.cpp b/src/creatures/combat/spells.cpp index 07c15fbb..2bb4889c 100644 --- a/src/creatures/combat/spells.cpp +++ b/src/creatures/combat/spells.cpp @@ -101,8 +101,7 @@ TalkActionResult_t Spells::playerSaySpell(const std::shared_ptr &player, if (instantSpell->playerCastInstant(player, param)) { if (!player->checkSpellNameInsteadOfWords()) { words = instantSpell->getWords(); - } - else { + } else { words = instantSpell->getName(); } diff --git a/src/creatures/creature.hpp b/src/creatures/creature.hpp index cdf76925..d36276fd 100644 --- a/src/creatures/creature.hpp +++ b/src/creatures/creature.hpp @@ -123,13 +123,13 @@ class Creature : virtual public Thing, public SharedObject { virtual CreatureType_t getType() const = 0; - bool isPlayer() const { - return getType() == CreatureType_t::CREATURETYPE_PLAYER; - } + bool isPlayer() const { + return getType() == CreatureType_t::CREATURETYPE_PLAYER; + } - bool isMonster() const { - return getType() == CreatureType_t::CREATURETYPE_MONSTER; - } + bool isMonster() const { + return getType() == CreatureType_t::CREATURETYPE_MONSTER; + } virtual void setID() = 0; void setRemoved() {