mirror of
https://github.com/liyunfan1223/mod-playerbots.git
synced 2026-02-20 18:10:02 +01:00
Remove can not enter message
This commit is contained in:
parent
39d93e6a2f
commit
6b7b270b26
@ -164,15 +164,15 @@ bool SummonAction::SummonUsingNpcs(Player* summoner, Player* player)
|
|||||||
bool SummonAction::Teleport(Player* summoner, Player* player)
|
bool SummonAction::Teleport(Player* summoner, Player* player)
|
||||||
{
|
{
|
||||||
Player* master = GetMaster();
|
Player* master = GetMaster();
|
||||||
if (master->GetMap() && master->GetMap()->IsDungeon()) {
|
// if (master->GetMap() && master->GetMap()->IsDungeon()) {
|
||||||
InstanceMap* map = master->GetMap()->ToInstanceMap();
|
// InstanceMap* map = master->GetMap()->ToInstanceMap();
|
||||||
if (map) {
|
// if (map) {
|
||||||
if (map->CannotEnter(player) == Map::CANNOT_ENTER_MAX_PLAYERS) {
|
// if (map->CannotEnter(player, true) == Map::CANNOT_ENTER_MAX_PLAYERS) {
|
||||||
botAI->TellError("I can not enter this dungeon");
|
// botAI->TellError("I can not enter this dungeon");
|
||||||
return false;
|
// return false;
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
if (!summoner->IsBeingTeleported() && !player->IsBeingTeleported())
|
if (!summoner->IsBeingTeleported() && !player->IsBeingTeleported())
|
||||||
{
|
{
|
||||||
float followAngle = GetFollowAngle();
|
float followAngle = GetFollowAngle();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user