Scripts/Commands: .npc info now includes react state info

Port From (https://github.com/TrinityCore/TrinityCore/commit/dd239e8b0f945a70c9d738024bdc2d75d54575f4)
This commit is contained in:
hondacrx
2021-11-02 14:03:25 -04:00
parent 6f27d79873
commit aebbc968eb
3 changed files with 7 additions and 2 deletions
+1
View File
@@ -179,6 +179,7 @@ namespace Game.Chat
handler.SendSysMessage(CypherStrings.NpcinfoArmor, target.GetArmor());
handler.SendSysMessage(CypherStrings.NpcinfoPosition, target.GetPositionX(), target.GetPositionY(), target.GetPositionZ());
handler.SendSysMessage(CypherStrings.ObjectInfoAIInfo, target.GetAIName(), target.GetScriptName());
handler.SendSysMessage(CypherStrings.NpcinfoReactState, target.GetReactState());
var ai = target.GetAI();
if (ai != null)
handler.SendSysMessage(CypherStrings.ObjectInfoAIType, nameof(ai));