diff options
author | Traesh <Traesh@users.noreply.github.com> | 2018-11-07 20:23:30 +0100 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2018-11-07 20:23:30 +0100 |
commit | 9d210476e57949094fdd286001ef4900564edca5 (patch) | |
tree | 1e8ed5d261698e633ee3371779d30f8c1666526e /src/server/scripts/Commands | |
parent | 31f0186d20a1944e5d0ff47d71ca8f560074de4b (diff) |
Core/Creatures: Update creature model handling with new display scale (#22567)
Diffstat (limited to 'src/server/scripts/Commands')
-rw-r--r-- | src/server/scripts/Commands/cs_modify.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/server/scripts/Commands/cs_modify.cpp b/src/server/scripts/Commands/cs_modify.cpp index a17824a0127..6dc2d9b84f2 100644 --- a/src/server/scripts/Commands/cs_modify.cpp +++ b/src/server/scripts/Commands/cs_modify.cpp @@ -493,7 +493,10 @@ public: if (CheckModifySpeed(handler, args, target, Scale, 0.1f, 10.0f, false)) { NotifyModification(handler, target, LANG_YOU_CHANGE_SIZE, LANG_YOURS_SIZE_CHANGED, Scale); - target->SetObjectScale(Scale); + if (Creature* creatureTarget = target->ToCreature()) + creatureTarget->SetFloatValue(UNIT_FIELD_DISPLAY_SCALE, Scale); + else + target->SetObjectScale(Scale); return true; } return false; |