mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-14 07:21:48 +00:00
Npcs won't respond to hails if they can't see you.
This commit is contained in:
parent
2c4ca77ffc
commit
a1960d4a4a
@ -1051,12 +1051,12 @@ void Client::ChannelMessageReceived(uint8 chan_num, uint8 language, uint8 lang_s
|
|||||||
if(quest_manager.ProximitySayInUse())
|
if(quest_manager.ProximitySayInUse())
|
||||||
entity_list.ProcessProximitySay(message, this, language);
|
entity_list.ProcessProximitySay(message, this, language);
|
||||||
|
|
||||||
if (GetTarget() != 0 && GetTarget()->IsNPC()) {
|
if (GetTarget() != 0 && GetTarget()->IsNPC() &&
|
||||||
|
!IsInvisible(GetTarget())) {
|
||||||
if(!GetTarget()->CastToNPC()->IsEngaged()) {
|
if(!GetTarget()->CastToNPC()->IsEngaged()) {
|
||||||
CheckLDoNHail(GetTarget());
|
CheckLDoNHail(GetTarget());
|
||||||
CheckEmoteHail(GetTarget(), message);
|
CheckEmoteHail(GetTarget(), message);
|
||||||
|
|
||||||
|
|
||||||
if(DistanceSquaredNoZ(m_Position, GetTarget()->GetPosition()) <= 200) {
|
if(DistanceSquaredNoZ(m_Position, GetTarget()->GetPosition()) <= 200) {
|
||||||
NPC *tar = GetTarget()->CastToNPC();
|
NPC *tar = GetTarget()->CastToNPC();
|
||||||
parse->EventNPC(EVENT_SAY, tar->CastToNPC(), this, message, language);
|
parse->EventNPC(EVENT_SAY, tar->CastToNPC(), this, message, language);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user