mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-17 18:41:29 +00:00
Mobs will now face their target they are casting on
Note: they do not switch their target, this is how live does it
This commit is contained in:
parent
88ec04e5ca
commit
20869a0aec
@ -461,8 +461,9 @@ bool Mob::DoCastSpell(uint16 spell_id, uint16 target_id, uint16 slot,
|
|||||||
if (IsAIControlled())
|
if (IsAIControlled())
|
||||||
{
|
{
|
||||||
SetRunAnimSpeed(0);
|
SetRunAnimSpeed(0);
|
||||||
if(this != pMob)
|
pMob = entity_list.GetMob(target_id);
|
||||||
this->FaceTarget(pMob);
|
if (pMob && this != pMob)
|
||||||
|
FaceTarget(pMob);
|
||||||
}
|
}
|
||||||
|
|
||||||
// if we got here we didn't fizzle, and are starting our cast
|
// if we got here we didn't fizzle, and are starting our cast
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user