mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-18 11:25:42 +00:00
fix(Core): Crash on Mandokir gaze (#12611)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user