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