Correct SD2 return values

This caused Clang to fail
This commit is contained in:
Foereaper 2015-03-29 23:22:31 +02:00
parent fce53c9d60
commit 1eb0c33e69

View File

@ -245,13 +245,13 @@ SpellEntry const* ScriptedAI::SelectSpell(Unit* pTarget, int32 /*uiSchool*/, int
// No target so we can't cast
if (!pTarget)
{
return false;
return NULL;
}
// Silenced so we can't cast
if (m_creature->HasFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_SILENCED))
{
return false;
return NULL;
}
// Using the extended script system we first create a list of viable spells