mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-20 13:21:28 +00:00
[Bots] Cleanup Say Event Parse. (#2557)
This commit is contained in:
parent
f67767f28e
commit
37af643b61
@ -1219,7 +1219,11 @@ void Client::ChannelMessageReceived(uint8 chan_num, uint8 language, uint8 lang_s
|
|||||||
#ifdef BOTS
|
#ifdef BOTS
|
||||||
else if (GetTarget() && GetTarget()->IsBot() && !IsInvisible(GetTarget())) {
|
else if (GetTarget() && GetTarget()->IsBot() && !IsInvisible(GetTarget())) {
|
||||||
if (DistanceNoZ(m_Position, GetTarget()->GetPosition()) <= RuleI(Range, Say)) {
|
if (DistanceNoZ(m_Position, GetTarget()->GetPosition()) <= RuleI(Range, Say)) {
|
||||||
parse->EventBot(GetTarget()->IsEngaged() ? EVENT_AGGRO_SAY : EVENT_SAY, GetTarget()->CastToBot(), this, message, language);
|
if (GetTarget()->IsEngaged()) {
|
||||||
|
parse->EventBot(EVENT_AGGRO_SAY, GetTarget()->CastToBot(), this, message, language);
|
||||||
|
} else {
|
||||||
|
parse->EventBot(EVENT_SAY, GetTarget()->CastToBot(), this, message, language);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user