mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-02-04 03:23:48 +00:00
Merge branch 'master' into Playerbot
# Conflicts: # src/server/game/Entities/Creature/Creature.cpp # src/server/game/Entities/Creature/Creature.h # src/server/game/Movement/MovementGenerators/TargetedMovementGenerator.cpp
This commit is contained in:
@@ -2965,6 +2965,11 @@ bool InstanceMap::AddPlayerToMap(Player* player)
|
||||
return false;
|
||||
}
|
||||
}
|
||||
else if (player->GetSession()->PlayerLoading() && playerBind && playerBind->save != mapSave)
|
||||
{
|
||||
// Prevent "Convert to Raid" exploit to reset instances
|
||||
return false;
|
||||
}
|
||||
else
|
||||
{
|
||||
playerBind = sInstanceSaveMgr->PlayerBindToInstance(player->GetGUID(), mapSave, false, player);
|
||||
|
||||
@@ -39,6 +39,7 @@ public:
|
||||
virtual void OnGameObjectRemove(GameObject*) { }
|
||||
|
||||
virtual void OnUnitDeath(Unit*) { }
|
||||
virtual void OnCreatureEvade(Creature*) { }
|
||||
|
||||
//All-purpose data storage 64 bit
|
||||
virtual ObjectGuid GetGuidData(uint32 /*DataId*/) const { return ObjectGuid::Empty; }
|
||||
|
||||
Reference in New Issue
Block a user