mirror of
https://github.com/mangosfour/server.git
synced 2025-12-17 16:37:00 +00:00
13 cmangos commits implemented
commits: 432bd63 Commit Ported Core Implement TakePossessOf to generalize the code. 0b663eb Commit Ported Core Implement a possibility to summon manualy a temporary creature. b6a9ead Commit Imported Core Little rewrite of resurect code to prepare ability ro resurrect a player to a ghoul form. e98b42c Commit Imported Core Implement TemporarySummon Linked aura to owner. ab139ff Commit Imported Core Do not force the creature to attack summoner in all case 555f055 Commit Imported Core Avoid possibility to charm more than one new creature for an unit. fd78c4a Commit Imported Core Fix problem that occur when the charm unit field is updated after the possess bar. e9821e2 Commit Imported Core fix lightwell gameobject not appearing after spell is cast 17d0e93 Commit Imported Core Implement logic for Target 95 as TARGET_VEHICLE_DRIVER 42b3545 Commit Imported Core Now npc/gameobject interaction will remove unauthorized aura 1195398 Commit Imported Core Improve functionality for eventAI action 26 - ACTION_T_QUEST_EVENT_ALL 72b7a48 Commit Ported Core fix pet stay 245f068 Commit Imported Warlock [Charm] prevent charming multiple demons also remove pet temporarily when casting specific channels that summon other charmed creatures
This commit is contained in:
parent
18dd18780d
commit
df3ab5df8e
25 changed files with 508 additions and 313 deletions
|
|
@ -1128,7 +1128,7 @@ class Player : public Unit
|
|||
void SendInstanceResetWarning(uint32 mapid, Difficulty difficulty, uint32 time);
|
||||
|
||||
Creature* GetNPCIfCanInteractWith(ObjectGuid guid, uint32 NpcFlagsmask);
|
||||
GameObject* GetGameObjectIfCanInteractWith(ObjectGuid guid, uint32 gameobject_type = MAX_GAMEOBJECT_TYPE) const;
|
||||
GameObject* GetGameObjectIfCanInteractWith(ObjectGuid guid, uint32 gameobject_type = MAX_GAMEOBJECT_TYPE);
|
||||
|
||||
void ToggleAFK();
|
||||
void ToggleDND();
|
||||
|
|
@ -1214,7 +1214,13 @@ class Player : public Unit
|
|||
* \param: bool inRestPlace > if it was offline, is the player was in city/tavern/inn?
|
||||
* \returns: float
|
||||
**/
|
||||
float ComputeRest(time_t timePassed, bool offline = false, bool inRestPlace = false);
|
||||
float ComputeRest(time_t timePassed, bool offline = false, bool inRestPlace = false);
|
||||
|
||||
/**
|
||||
* \brief: player is interacting with something.
|
||||
* \param: ObjectGuid interactObj > object that interact with this player
|
||||
**/
|
||||
void DoInteraction(ObjectGuid const& interactObjGuid);
|
||||
|
||||
RestType GetRestType() const
|
||||
{
|
||||
|
|
@ -1817,6 +1823,8 @@ class Player : public Unit
|
|||
uint32 GetLastPotionId() { return m_lastPotionId; }
|
||||
void UpdatePotionCooldown(Spell* spell = NULL);
|
||||
|
||||
void setResurrectRequestData(Unit* caster, uint32 health, uint32 mana);
|
||||
void setResurrectRequestDataToGhoul(Unit* caster);
|
||||
void setResurrectRequestData(ObjectGuid guid, uint32 mapId, float X, float Y, float Z, uint32 health, uint32 mana)
|
||||
{
|
||||
m_resurrectGuid = guid;
|
||||
|
|
@ -2413,6 +2421,7 @@ class Player : public Unit
|
|||
void SetMover(Unit* target) { m_mover = target ? target : this; }
|
||||
Unit* GetMover() const { return m_mover; }
|
||||
bool IsSelfMover() const { return m_mover == this; }// normal case for player not controlling other unit
|
||||
void Uncharm() override;
|
||||
|
||||
ObjectGuid const& GetFarSightGuid() const { return GetGuidValue(PLAYER_FARSIGHT); }
|
||||
|
||||
|
|
@ -2472,6 +2481,7 @@ class Player : public Unit
|
|||
uint32 GetTemporaryUnsummonedPetNumber() const { return m_temporaryUnsummonedPetNumber; }
|
||||
void SetTemporaryUnsummonedPetNumber(uint32 petnumber) { m_temporaryUnsummonedPetNumber = petnumber; }
|
||||
void UnsummonPetTemporaryIfAny();
|
||||
void UnsummonPetIfAny();
|
||||
void ResummonPetTemporaryUnSummonedIfAny();
|
||||
bool IsPetNeedBeTemporaryUnsummoned() const { return !IsInWorld() || !IsAlive() || IsMounted() /*+in flight*/; }
|
||||
|
||||
|
|
@ -2745,6 +2755,7 @@ class Player : public Unit
|
|||
uint32 m_resurrectMap;
|
||||
float m_resurrectX, m_resurrectY, m_resurrectZ;
|
||||
uint32 m_resurrectHealth, m_resurrectMana;
|
||||
bool m_resurrectToGhoul;
|
||||
|
||||
WorldSession* m_session;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue