fix(Core): Crash on Mandokir gaze (#12611)
This commit is contained in:
@@ -719,11 +719,14 @@ public:
|
|||||||
{
|
{
|
||||||
if (Unit* target = GetTarget())
|
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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user