add (core): Dismount Helper (#15511)
This commit is contained in:
@@ -13473,7 +13473,7 @@ void Unit::Dismount()
|
|||||||
if (Player* player = ToPlayer())
|
if (Player* player = ToPlayer())
|
||||||
{
|
{
|
||||||
sScriptMgr->AnticheatSetUnderACKmount(player);
|
sScriptMgr->AnticheatSetUnderACKmount(player);
|
||||||
|
ToPlayer()->SetCanTeleport(true);
|
||||||
if (Pet* pPet = player->GetPet())
|
if (Pet* pPet = player->GetPet())
|
||||||
{
|
{
|
||||||
if (pPet->HasUnitFlag(UNIT_FLAG_STUNNED) && !pPet->HasUnitState(UNIT_STATE_STUNNED))
|
if (pPet->HasUnitFlag(UNIT_FLAG_STUNNED) && !pPet->HasUnitState(UNIT_STATE_STUNNED))
|
||||||
|
|||||||
Reference in New Issue
Block a user