[Core] Allow creatures to handle several EVENT_T_RECEIVE_EMOTE instead of one. (c2633)
Some NPCs can react to several emotes from player not only one. Thanks @cyberium on nailing this.
This commit is contained in:
parent
f119a6119b
commit
4a8a482151
@ -1504,7 +1504,7 @@ void CreatureEventAI::ReceiveEmote(Player* pPlayer, uint32 text_emote)
|
||||
if (itr->Event.event_type == EVENT_T_RECEIVE_EMOTE)
|
||||
{
|
||||
if (itr->Event.receive_emote.emoteId != text_emote)
|
||||
{ return; }
|
||||
{ continue; }
|
||||
|
||||
PlayerCondition pcon(0, itr->Event.receive_emote.condition, itr->Event.receive_emote.conditionValue1, itr->Event.receive_emote.conditionValue2);
|
||||
if (pcon.Meets(pPlayer, m_creature->GetMap(), m_creature, CONDITION_FROM_EVENTAI))
|
||||
|
Loading…
x
Reference in New Issue
Block a user