aboutsummaryrefslogtreecommitdiff
path: root/src/server/scripts/Commands
diff options
context:
space:
mode:
authorTraesh <Traesh@users.noreply.github.com>2018-11-07 20:23:30 +0100
committerShauren <shauren.trinity@gmail.com>2018-11-07 20:23:30 +0100
commit9d210476e57949094fdd286001ef4900564edca5 (patch)
tree1e8ed5d261698e633ee3371779d30f8c1666526e /src/server/scripts/Commands
parent31f0186d20a1944e5d0ff47d71ca8f560074de4b (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.cpp5
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;