Core/AI: Removed needless code

This commit is contained in:
Manuel Carrasco
2013-02-03 03:01:47 -02:00
parent 55fc0c58af
commit 68610a60ea

View File

@@ -103,8 +103,7 @@ void UnitAI::DoAddAuraToAllHostilePlayers(uint32 spellid)
if (unit->GetTypeId() == TYPEID_PLAYER)
me->AddAura(spellid, unit);
}
}else
return;
}
}
void UnitAI::DoCastToAllHostilePlayers(uint32 spellid, bool triggered)
@@ -118,8 +117,7 @@ void UnitAI::DoCastToAllHostilePlayers(uint32 spellid, bool triggered)
if (unit->GetTypeId() == TYPEID_PLAYER)
me->CastSpell(unit, spellid, triggered);
}
}else
return;
}
}
void UnitAI::DoCast(uint32 spellId)