fix(Core): Crash on Mandokir gaze (#12611)
This commit is contained in:
parent
c806c62c62
commit
cee21c022a
1 changed files with 6 additions and 3 deletions
|
|
@ -719,11 +719,14 @@ public:
|
|||
{
|
||||
if (Unit* target = GetTarget())
|
||||
{
|
||||
if (Creature* caster = GetCaster()->ToCreature())
|
||||
if (Unit* caster = GetCaster())
|
||||
{
|
||||
if (caster->IsAIEnabled)
|
||||
if (Creature* cCaster = caster->ToCreature())
|
||||
{
|
||||
caster->AI()->SetGUID(target->GetGUID(), ACTION_CHARGE);
|
||||
if (cCaster->IsAIEnabled)
|
||||
{
|
||||
cCaster->AI()->SetGUID(target->GetGUID(), ACTION_CHARGE);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue