Core/Player: Fix resurrection exploit

Fix an exploit that allowed to resurrect even if corpse was not in range (teleport hack was required too)
This commit is contained in:
jackpoz
2015-06-02 19:16:42 +02:00
parent 52ea75c735
commit 83cf1e6aec

View File

@@ -1664,7 +1664,7 @@ class Player : public Unit, public GridObject<Player>
void setResurrectRequestData(ObjectGuid guid, uint32 mapId, float X, float Y, float Z, uint32 health, uint32 mana);
void clearResurrectRequestData() { setResurrectRequestData(ObjectGuid::Empty, 0, 0.0f, 0.0f, 0.0f, 0, 0); }
bool isResurrectRequestedBy(ObjectGuid guid) const { return m_resurrectGUID == guid; }
bool isResurrectRequestedBy(ObjectGuid guid) const { return !m_resurrectGUID.IsEmpty() && m_resurrectGUID == guid; }
bool isResurrectRequested() const { return !m_resurrectGUID.IsEmpty(); }
void ResurrectUsingRequestData();