Merge branch 'master' into Playerbot

This commit is contained in:
Yunfan Li
2023-08-29 20:50:49 +08:00
87 changed files with 74 additions and 108 deletions

View File

@@ -35,7 +35,6 @@ EndScriptData */
#include "SecretMgr.h"
#include "StringConvert.h"
#include "TOTP.h"
#include <openssl/rand.h>
#include <unordered_map>
#if AC_COMPILER == AC_COMPILER_GNU

View File

@@ -29,7 +29,6 @@ EndScriptData */
#include "ScriptMgr.h"
#include "SpellInfo.h"
#include "SpellMgr.h"
#include "WorldSession.h"
using namespace Acore::ChatCommands;

View File

@@ -29,7 +29,6 @@
#include "Chat.h"
#include "GossipDef.h"
#include "GridNotifiersImpl.h"
#include "InstanceScript.h"
#include "Language.h"
#include "Log.h"
#include "MapMgr.h"

View File

@@ -35,7 +35,6 @@ EndScriptData */
#include "Random.h"
#include "ScriptMgr.h"
#include "SpellAuraEffects.h"
#include "WorldSession.h"
using namespace Acore::ChatCommands;

View File

@@ -24,7 +24,6 @@ EndScriptData */
#include "Channel.h"
#include "Chat.h"
#include "DBCStores.h"
#include "DatabaseEnv.h"
#include "Language.h"
#include "ObjectAccessor.h"

View File

@@ -24,7 +24,6 @@
#include "ScriptMgr.h"
#include "SpellInfo.h"
#include "SpellMgr.h"
#include "WorldSession.h"
using namespace Acore::ChatCommands;

View File

@@ -209,10 +209,36 @@ struct boss_moroes : public BossAI
return Acore::Containers::SelectRandomContainerElement(guestList);
}
bool CheckGuestsInRoom()
{
bool guestsInRoom = true;
summons.DoForAllSummons([&guestsInRoom](WorldObject* summon)
{
if ((summon->ToCreature()->GetPositionX()) < -11028.f || (summon->ToCreature()->GetPositionY()) < -1955.f) //boundaries of the two doors
{
guestsInRoom = false;
return false;
}
return true;
});
return guestsInRoom;
}
void UpdateAI(uint32 diff) override
{
scheduler.Update(diff);
if (!CheckGuestsInRoom())
{
EnterEvadeMode();
summons.DoForAllSummons([](WorldObject* summon)
{
summon->ToCreature()->AI()->EnterEvadeMode();
});
return;
}
if (!UpdateVictim())
return;

View File

@@ -18,9 +18,7 @@
#include "Cell.h"
#include "CellImpl.h"
#include "GridNotifiers.h"
#include "GridNotifiersImpl.h"
#include "Group.h"
#include "LFGMgr.h"
#include "PassiveAI.h"
#include "ScriptMgr.h"
#include "ScriptedCreature.h"

View File

@@ -19,7 +19,6 @@
#include "PassiveAI.h"
#include "Player.h"
#include "ScriptMgr.h"
#include "ScriptedCreature.h"
#include "SpellAuraEffects.h"
#include "SpellScript.h"
#include "Vehicle.h"

View File

@@ -20,7 +20,6 @@
#include "SmartAI.h"
#include "ScriptMgr.h"
#include "ScriptedCreature.h"
#include "ScriptedGossip.h"
enum medivhMisc
{

View File

@@ -31,7 +31,6 @@ EndContentData */
#include "ScriptedCreature.h"
#include "ScriptedGossip.h"
#include "SpellScript.h"
#include "WorldSession.h"
/*######
## npc_zelfrax

View File

@@ -26,7 +26,6 @@ EndScriptData */
#include "Player.h"
#include "ScriptMgr.h"
#include "ScriptedCreature.h"
#include "ScriptedEscortAI.h"
#include "ScriptedGossip.h"
#include "SpellScript.h"

View File

@@ -36,7 +36,6 @@ EndContentData */
#include "ScriptedEscortAI.h"
#include "ScriptedFollowerAI.h"
#include "ScriptedGossip.h"
#include "WorldSession.h"
/*######
## npc_aquementas

View File

@@ -33,7 +33,6 @@ EndContentData */
#include "ScriptedCreature.h"
#include "ScriptedEscortAI.h"
#include "ScriptedGossip.h"
#include "WorldSession.h"
// Theirs
/*######

View File

@@ -25,7 +25,6 @@
#include "ScriptedCreature.h"
#include "SpellScript.h"
#include "Vehicle.h"
#include "WorldSession.h"
#include "eye_of_eternity.h"
enum MovementInformPoints

View File

@@ -23,7 +23,6 @@
#include "ScriptMgr.h"
#include "ScriptedCreature.h"
#include "ScriptedEscortAI.h"
#include "ScriptedGossip.h"
#include "Spell.h"
#include "SpellAuraEffects.h"
#include "SpellAuras.h"

View File

@@ -22,7 +22,6 @@
#include "Transport.h"
#include "Vehicle.h"
#include "WorldPacket.h"
#include "WorldSession.h"
#include "ulduar.h"
class instance_ulduar : public InstanceMapScript

View File

@@ -15,7 +15,6 @@
* with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "Player.h"
#include "ScriptMgr.h"
#include "ScriptedCreature.h"
#include "shadow_labyrinth.h"

View File

@@ -17,7 +17,6 @@
#include "CreatureTextMgr.h"
#include "InstanceScript.h"
#include "ScriptedCreature.h"
#include "ScriptMgr.h"
#include "shattered_halls.h"

View File

@@ -22,7 +22,6 @@
#include "ScriptedEscortAI.h"
#include "ScriptedGossip.h"
#include "SpellScript.h"
#include "WorldSession.h"
// Ours

View File

@@ -40,7 +40,6 @@ EndContentData */
#include "Player.h"
#include "ScriptMgr.h"
#include "ScriptedCreature.h"
#include "ScriptedEscortAI.h"
#include "ScriptedGossip.h"
#include "SpellScript.h"

View File

@@ -32,7 +32,6 @@
#include "GameTime.h"
#include "GridNotifiers.h"
#include "Group.h"
#include "InstanceScript.h"
#include "Pet.h"
#include "ReputationMgr.h"
#include "ScriptMgr.h"

View File

@@ -19,7 +19,6 @@
#include "Chat.h"
#include "CombatAI.h"
#include "CreatureTextMgr.h"
#include "DBCStructure.h"
#include "GameEventMgr.h"
#include "GameTime.h"
#include "GridNotifiers.h"

View File

@@ -17,7 +17,6 @@
#include "Player.h"
#include "ScriptMgr.h"
#include "Mail.h"
#include "ObjectMgr.h"
#include "QueryResult.h"