mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 04:37:00 +00:00
[10627] Use ObjectGuid for player's selection and unit's target
This commit is contained in:
parent
e74d56f9d2
commit
c955941b55
21 changed files with 66 additions and 73 deletions
|
|
@ -831,8 +831,7 @@ SpellAuraProcResult Unit::HandleDummyAuraProc(Unit *pVictim, uint32 damage, Aura
|
|||
target = getVictim();
|
||||
if(!target)
|
||||
{
|
||||
uint64 selected_guid = ((Player *)this)->GetSelection();
|
||||
target = ObjectAccessor::GetUnit(*this,selected_guid);
|
||||
target = ObjectAccessor::GetUnit(*this,((Player *)this)->GetSelectionGuid());
|
||||
if(!target)
|
||||
return SPELL_AURA_PROC_FAILED;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue