Scripts/Commands: Modify .debug anim command to target any selected unit

This commit is contained in:
Aokromes committed 2016-05-12 00:25:01 +02:00
1 parent 5fa4faac38
commit 34d78137e0
1 file changed
+2 -1
+2 -1
View File
@@ -1068,7 +1068,8 @@ public:
return false;
uint32 animId = atoi((char*)args);
handler->GetSession()->GetPlayer()->HandleEmoteCommand(animId);
if (Unit* unit = handler->getSelectedUnit())
unit->HandleEmoteCommand(animId);
return true;
}