mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-29 13:22:48 +01:00
*Fix a bug that Hexlord crash the server.
--HG-- branch : trunk
This commit is contained in:
@@ -433,7 +433,8 @@ struct TRINITY_DLL_DECL boss_hex_lord_malacrassAI : public ScriptedAI
|
||||
}
|
||||
break;
|
||||
}
|
||||
m_creature->CastSpell(target, PlayerAbility[PlayerClass][random].spell, false);
|
||||
if(target)
|
||||
m_creature->CastSpell(target, PlayerAbility[PlayerClass][random].spell, false);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user