From 45d74f8e05b0442a08713c12287f6becda34f892 Mon Sep 17 00:00:00 2001 From: Brian Date: Mon, 14 Dec 2009 11:02:44 -0700 Subject: [PATCH] * Add support for proper team model IDs for totems. * They are no longer random. * Thanks to Zor for original patch --HG-- branch : trunk --- src/game/Totem.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/game/Totem.cpp b/src/game/Totem.cpp index 106efdfd5a..c7ea9b1f12 100644 --- a/src/game/Totem.cpp +++ b/src/game/Totem.cpp @@ -63,6 +63,20 @@ void Totem::InitStats(uint32 duration) CreatureModelInfo const *minfo = objmgr.GetCreatureModelRandomGender(display_id); if (minfo) display_id = minfo->modelid; + switch (((Player*)m_owner)->GetTeam()) + { + case ALLIANCE: + display_id = cinfo->Modelid1; + break; + case HORDE: + if (cinfo->Modelid3) + display_id = cinfo->Modelid3; + else + display_id = cinfo->Modelid1; + break; + default: + break; + } SetDisplayId(display_id); }