feat(Core/Player): Additional option for worldserver config parameter "InstantFlightPaths" (#2246)

This commit is contained in:
Stoabrogga
2019-09-04 01:19:57 +02:00
committed by GitHub
parent 22b360ee0d
commit e314a0c716
8 changed files with 58 additions and 4 deletions

View File

@@ -909,6 +909,11 @@ enum PlayerCommandStates
CHEAT_WATERWALK = 0x10
};
enum InstantFlightGossipAction
{
GOSSIP_ACTION_TOGGLE_INSTANT_FLIGHT = 500
};
class PlayerTaxi
{
public:
@@ -1395,6 +1400,8 @@ class Player : public Unit, public GridObject<Player>
uint32 GetGossipTextId(WorldObject* source);
static uint32 GetDefaultGossipMenuForSource(WorldObject* source);
void ToggleInstantFlight();
/*********************************************************/
/*** QUEST SYSTEM ***/
/*********************************************************/
@@ -2961,6 +2968,8 @@ class Player : public Unit, public GridObject<Player>
// duel health and mana reset attributes
uint32 healthBeforeDuel;
uint32 manaBeforeDuel;
bool m_isInstantFlightOn;
};
void AddItemsSetItem(Player* player, Item* item);