mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 10:37:02 +00:00
[10745] Use ObjectGuid in spellauraholders instead uint64
(based on rsa's repo commit 06342c1) Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
parent
62c448b466
commit
87b8a1d1ce
4 changed files with 38 additions and 37 deletions
|
|
@ -15748,7 +15748,7 @@ void Player::_LoadAuras(QueryResult *result, uint32 timediff)
|
|||
do
|
||||
{
|
||||
Field *fields = result->Fetch();
|
||||
uint64 caster_guid = fields[0].GetUInt64();
|
||||
ObjectGuid caster_guid = fields[0].GetUInt64();
|
||||
uint32 item_lowguid = fields[1].GetUInt64();
|
||||
uint32 spellid = fields[2].GetUInt32();
|
||||
uint32 stackcount = fields[3].GetUInt32();
|
||||
|
|
@ -15808,7 +15808,7 @@ void Player::_LoadAuras(QueryResult *result, uint32 timediff)
|
|||
if (!holder->IsEmptyHolder())
|
||||
{
|
||||
// reset stolen single target auras
|
||||
if (caster_guid != GetGUID() && holder->IsSingleTarget())
|
||||
if (caster_guid != GetObjectGuid() && holder->IsSingleTarget())
|
||||
holder->SetIsSingleTarget(false);
|
||||
|
||||
holder->SetLoadedState(caster_guid, ObjectGuid(HIGHGUID_ITEM, item_lowguid), stackcount, remaincharges);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue