Scripts/Commands: Modify .debug anim command to target any selected unit
This commit is contained in:
1 parent
5fa4faac38
commit
34d78137e0
1 file changed
+2
-1
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user