Skip to content

Commit

Permalink
[c13047] Allow creatures to handle several EVENT_T_RECEIVE_EMOTE inst…
Browse files Browse the repository at this point in the history
…ead of one

Some NPCs can react to several emotes from player not only one. Thanks
@cyberium on nailing this.

(based on commit [12836] - 5b24123)

Signed-off-by: Xfurry <xfurry@scriptdev2.com>
  • Loading branch information
cala authored and xfurry committed Feb 27, 2015
1 parent 9eb376d commit fc152ad
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/game/CreatureEventAI.cpp
Expand Up @@ -1457,7 +1457,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))
Expand Down
2 changes: 1 addition & 1 deletion src/shared/revision_nr.h
@@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "13046"
#define REVISION_NR "13047"
#endif // __REVISION_NR_H__

0 comments on commit fc152ad

Please sign in to comment.