mirror of
https://github.com/mangosfour/server.git
synced 2025-12-17 16:37:00 +00:00
[10518] Prevent emotes animation in feign death state.
In 3.x this has been posisble only with cheating tool.
This commit is contained in:
parent
fa9c6e2e61
commit
14127b4d08
2 changed files with 8 additions and 2 deletions
|
|
@ -494,7 +494,7 @@ void WorldSession::HandleMessagechatOpcode( WorldPacket & recv_data )
|
|||
|
||||
void WorldSession::HandleEmoteOpcode( WorldPacket & recv_data )
|
||||
{
|
||||
if(!GetPlayer()->isAlive())
|
||||
if(!GetPlayer()->isAlive() || GetPlayer()->hasUnitState(UNIT_STAT_DIED))
|
||||
return;
|
||||
|
||||
uint32 emote;
|
||||
|
|
@ -567,9 +567,15 @@ void WorldSession::HandleTextEmoteOpcode( WorldPacket & recv_data )
|
|||
case EMOTE_ONESHOT_NONE:
|
||||
break;
|
||||
default:
|
||||
{
|
||||
// in feign death state allowed only text emotes.
|
||||
if (GetPlayer()->hasUnitState(UNIT_STAT_DIED))
|
||||
break;
|
||||
|
||||
GetPlayer()->HandleEmoteCommand(emote_id);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Unit* unit = ObjectAccessor::GetUnit(*_player, guid);
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#ifndef __REVISION_NR_H__
|
||||
#define __REVISION_NR_H__
|
||||
#define REVISION_NR "10517"
|
||||
#define REVISION_NR "10518"
|
||||
#endif // __REVISION_NR_H__
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue