aboutsummaryrefslogtreecommitdiff
path: root/src/game/Totem.cpp
diff options
context:
space:
mode:
authorBrian <runningnak3d@gmail.com>2010-02-14 19:13:14 -0700
committerBrian <runningnak3d@gmail.com>2010-02-14 19:13:14 -0700
commit486c00891ba34884e5b2cdd8d44b4d8496f11283 (patch)
tree7df304b9020ed21b87bd66978d2dc6e6683edce7 /src/game/Totem.cpp
parent7799ade4da0da17034039439d692122e976c0138 (diff)
* Core switch to client 3.3.2 (11403)
* Credits (in no particular order) to: * n0n4m3, raczman, manuel, Spp, Malcrom, Teacher, QAston, Tartalo, * thenecromancer, Xanadu, Trazom, Zor, kiper * Additional credits to: * TOM_RUS and NoFantasy from MaNGOS * Thanks for testing Aokromes and XTElite1 * SoTA still needs some work, but is very playable (huge thanks to raczman and * kiper) * To upgrade, you need to apply all SQL from sql/updates/3.2.2a_old from the * last rev you are on * and then apply all SQL from sql/updates/3.3.2_old to char / realmd / world * DBs * Known problem with guild banks. --HG-- branch : trunk
Diffstat (limited to 'src/game/Totem.cpp')
-rw-r--r--src/game/Totem.cpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/game/Totem.cpp b/src/game/Totem.cpp
index 0358cc0c990..6b277136444 100644
--- a/src/game/Totem.cpp
+++ b/src/game/Totem.cpp
@@ -73,6 +73,24 @@ void Totem::InitStats(uint32 duration)
display_id = cinfo->Modelid3;
else
display_id = cinfo->Modelid1;
+
+ switch (((Player*)m_owner)->getRace())
+ {
+ case RACE_ORC:
+ if (cinfo->Modelid2)
+ display_id = cinfo->Modelid2;
+ else
+ display_id = cinfo->Modelid1;
+ break;
+ case RACE_TROLL:
+ if (cinfo->Modelid4)
+ display_id = cinfo->Modelid4;
+ else
+ display_id = cinfo->Modelid1;
+ break;
+ default:
+ break;
+ }
break;
default:
break;