mirror of
https://github.com/mangosfour/server.git
synced 2025-12-12 19:37:03 +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
|
|
@ -5602,7 +5602,7 @@ bool Unit::Attack(Unit *victim, bool meleeAttack)
|
|||
}
|
||||
|
||||
// Set our target
|
||||
SetTargetGUID(victim->GetGUID());
|
||||
SetTargetGuid(victim->GetObjectGuid());
|
||||
|
||||
if(meleeAttack)
|
||||
addUnitState(UNIT_STAT_MELEE_ATTACKING);
|
||||
|
|
@ -5637,7 +5637,7 @@ bool Unit::AttackStop(bool targetSwitch /*=false*/)
|
|||
m_attacking = NULL;
|
||||
|
||||
// Clear our target
|
||||
SetTargetGUID(0);
|
||||
SetTargetGuid(ObjectGuid());
|
||||
|
||||
clearUnitState(UNIT_STAT_MELEE_ATTACKING);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue