mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-25 06:36:24 +00:00
fix(Core/DungeonFinder): Seasonal bosses are available only via Dunge… (#8056)
* fix(Core/DungeonFinder): Seasonal bosses are available only via Dungeon Finder tool. Fixes #7889 * Update. * Buildfix. * Missing.
This commit is contained in:
@@ -59,6 +59,7 @@ public:
|
||||
virtual void OnStateChanged(uint32 /*state*/, Unit* /*unit*/) {}
|
||||
virtual void EventInform(uint32 /*eventId*/) {}
|
||||
virtual void SpellHit(Unit* /*unit*/, const SpellInfo* /*spellInfo*/) {}
|
||||
virtual bool CanBeSeen(Player const* /*seer*/) { return true; }
|
||||
};
|
||||
|
||||
class NullGameObjectAI : public GameObjectAI
|
||||
|
||||
@@ -2655,13 +2655,13 @@ namespace lfg
|
||||
{
|
||||
switch (dungeonId)
|
||||
{
|
||||
case 285: // The Headless Horseman
|
||||
case LFG_DUNGEON_HEADLESS_HORSEMAN:
|
||||
return IsHolidayActive(HOLIDAY_HALLOWS_END);
|
||||
case 286: // The Frost Lord Ahune
|
||||
case LFG_DUNGEON_FROST_LORD_AHUNE:
|
||||
return IsHolidayActive(HOLIDAY_FIRE_FESTIVAL);
|
||||
case 287: // Coren Direbrew
|
||||
case LFG_DUNGEON_COREN_DIREBREW:
|
||||
return IsHolidayActive(HOLIDAY_BREWFEST);
|
||||
case 288: // The Crown Chemical Co.
|
||||
case LFG_DUNGEON_CROWN_CHEMICAL_CO:
|
||||
return IsHolidayActive(HOLIDAY_LOVE_IS_IN_THE_AIR);
|
||||
}
|
||||
return false;
|
||||
|
||||
@@ -140,6 +140,14 @@ namespace lfg
|
||||
LFG_UPDATE_FLAG_BINDED = 0x80
|
||||
};
|
||||
|
||||
enum LfgSeasonalDungeons
|
||||
{
|
||||
LFG_DUNGEON_HEADLESS_HORSEMAN = 285,
|
||||
LFG_DUNGEON_FROST_LORD_AHUNE = 286,
|
||||
LFG_DUNGEON_COREN_DIREBREW = 287,
|
||||
LFG_DUNGEON_CROWN_CHEMICAL_CO = 288
|
||||
};
|
||||
|
||||
struct RBEntryInfo
|
||||
{
|
||||
RBEntryInfo() {}
|
||||
|
||||
@@ -23,6 +23,7 @@
|
||||
#include "Creature.h"
|
||||
#include "DynamicTree.h"
|
||||
#include "DynamicVisibility.h"
|
||||
#include "GameObjectAI.h"
|
||||
#include "GridNotifiers.h"
|
||||
#include "Log.h"
|
||||
#include "MapMgr.h"
|
||||
@@ -1673,6 +1674,11 @@ bool WorldObject::CanSeeOrDetect(WorldObject const* obj, bool ignoreStealth, boo
|
||||
if (cObj->IsAIEnabled && this->ToPlayer() && !cObj->AI()->CanBeSeen(this->ToPlayer()))
|
||||
return false;
|
||||
|
||||
// Gameobject scripts
|
||||
if (GameObject const* goObj = obj->ToGameObject())
|
||||
if (this->ToPlayer() && !goObj->AI()->CanBeSeen(this->ToPlayer()))
|
||||
return false;
|
||||
|
||||
// pussywizard: arena spectator
|
||||
if (obj->GetTypeId() == TYPEID_PLAYER)
|
||||
if (((const Player*)obj)->IsSpectator() && ((const Player*)obj)->FindMap()->IsBattleArena())
|
||||
|
||||
Reference in New Issue
Block a user