diff options
| author | kaelima <kaelima@live.se> | 2012-12-26 04:02:42 +0100 |
|---|---|---|
| committer | kaelima <kaelima@live.se> | 2012-12-26 04:02:42 +0100 |
| commit | a8cd34c4a4613c968aa783f65a45af45965433e3 (patch) | |
| tree | 92c5881da690b5fcba3b38f58f540c8fd688b0bb /src/server/game/Entities/Object | |
| parent | a01087295b4d243f1e4c8b17cfe4eaef96b47111 (diff) | |
Core/Battleground: Rename and correct usage of opcode 1223 and increase the timer before arena/bg invitation window is removed to its proper value. Closes #6725
Diffstat (limited to 'src/server/game/Entities/Object')
| -rw-r--r-- | src/server/game/Entities/Object/Object.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/server/game/Entities/Object/Object.cpp b/src/server/game/Entities/Object/Object.cpp index d96cf58db52..313c6942902 100644 --- a/src/server/game/Entities/Object/Object.cpp +++ b/src/server/game/Entities/Object/Object.cpp @@ -302,6 +302,19 @@ void Object::DestroyForPlayer(Player* target, bool onDeath) const { ASSERT(target); + if (isType(TYPEMASK_UNIT) || isType(TYPEMASK_PLAYER)) + { + if (Battleground* bg = target->GetBattleground()) + { + if (bg->isArena()) + { + WorldPacket data(SMSG_ARENA_UNIT_DESTROYED, 8); + data << uint64(GetGUID()); + target->GetSession()->SendPacket(&data); + } + } + } + WorldPacket data(SMSG_DESTROY_OBJECT, 8 + 1); data << uint64(GetGUID()); //! If the following bool is true, the client will call "void CGUnit_C::OnDeath()" for this object. |
