Merge pull request #12000 from Dehravor/algalon-big-bang

Scripts/Ulduar: Fix crash when Algalon's Big Bang is casted by player
This commit is contained in:
Discover-
2014-05-04 20:50:04 +02:00

View File

@@ -1196,7 +1196,7 @@ class spell_algalon_big_bang : public SpellScriptLoader
bool Load() override
{
_targetCount = 0;
return true;
return GetCaster()->GetTypeId() == TYPEID_UNIT && GetCaster()->IsAIEnabled;
}
void CountTargets(std::list<WorldObject*>& targets)