Skip to content

Commit

Permalink
Scripts/Commands: Modify ".debug anim" command to target any selected…
Browse files Browse the repository at this point in the history
… unit

(cherry picked from commit f719338)
  • Loading branch information
ForesterDev authored and Shauren committed Apr 9, 2016
1 parent f5fe9ff commit 1ef3b52
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/server/scripts/Commands/cs_debug.cpp
Expand Up @@ -1070,7 +1070,8 @@ class debug_commandscript : public CommandScript
return false;

uint32 animId = atoi((char*)args);
handler->GetSession()->GetPlayer()->HandleEmoteCommand(animId);
if (Unit* unit = handler->getSelectedUnit())
unit->HandleEmoteCommand(animId);
return true;
}

Expand Down

0 comments on commit 1ef3b52

Please sign in to comment.