Correct chat message call
This commit is contained in:
parent
885febcf2a
commit
41c6d4d7f4
@ -2,6 +2,7 @@
|
||||
#include "Player.h"
|
||||
#include "Unit.h"
|
||||
#include "SharedDefines.h"
|
||||
#include "WorldSession.h"
|
||||
|
||||
class SwiftTravelForm_UnitScript : public UnitScript
|
||||
{
|
||||
@ -20,8 +21,7 @@ public:
|
||||
if (!player)
|
||||
return;
|
||||
|
||||
std::string msg = "Shapeshift form changed: " + std::to_string(form);
|
||||
player->SendBroadcastMessage(msg.c_str());
|
||||
player->GetSession()->SendAreaTriggerMessage("Shapeshift form changed.");
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user