diff options
author | Treeston <treeston.mmoc@gmail.com> | 2018-01-01 17:07:39 +0100 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2021-04-27 23:49:36 +0200 |
commit | 0aed5a35efd0305c1c3046430a1b348f2049a1c5 (patch) | |
tree | bc6695de95bb8d342692f714bffb0367145346f3 /src/server/game/AI/CreatureAI.cpp | |
parent | f4ef40d9686135088a76c90a3f9de6a6bc10e8f0 (diff) |
Core/AI: Kick Gossip functions upstairs, from UnitAI to CreatureAI - they only make sense for Creatures anyway.
Also change a very ugly hack in GetDialogStatus. Ew.
(cherry picked from commit eacfa9d89afcfad0cbd0715c8a84890c3ccd1c74)
Diffstat (limited to 'src/server/game/AI/CreatureAI.cpp')
-rw-r--r-- | src/server/game/AI/CreatureAI.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/server/game/AI/CreatureAI.cpp b/src/server/game/AI/CreatureAI.cpp index bb44c5d572f..1b7234dd939 100644 --- a/src/server/game/AI/CreatureAI.cpp +++ b/src/server/game/AI/CreatureAI.cpp @@ -23,6 +23,7 @@ #include "CreatureTextMgr.h" #include "Language.h" #include "Log.h" +#include "LootMgr.h" #include "Map.h" #include "MapReference.h" #include "MotionMaster.h" @@ -279,6 +280,16 @@ bool CreatureAI::_EnterEvadeMode(EvadeReason /*why*/) return true; } +Optional<QuestGiverStatus> CreatureAI::GetDialogStatus(Player* /*player*/) +{ + return {}; +} + +void CreatureAI::QuestReward(Player* player, Quest const* quest, uint32 opt) +{ + QuestReward(player, quest, LootItemType::Item, opt); +} + const uint32 BOUNDARY_VISUALIZE_CREATURE = 15425; const float BOUNDARY_VISUALIZE_CREATURE_SCALE = 0.25f; const int8 BOUNDARY_VISUALIZE_STEP_SIZE = 1; |