couple wrong return types

This commit is contained in:
faramir118
2012-03-17 01:40:33 -05:00
committed by Machiavelli
parent c09cd26739
commit e3f198ca56
2 changed files with 4 additions and 4 deletions

View File

@@ -177,11 +177,11 @@ SpellInfo const* ScriptedAI::SelectSpell(Unit* target, uint32 school, uint32 mec
{
//No target so we can't cast
if (!target)
return false;
return NULL;
//Silenced so we can't cast
if (me->HasFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_SILENCED))
return false;
return NULL;
//Using the extended script system we first create a list of viable spells
SpellInfo const* apSpell[CREATURE_MAX_SPELLS];