Anything that applies AOE damage will affect your allies if they are in range... that is why a Wizard specked as an Evocation specialist or a Sorcerer using metamagic: careful"are the safest to avoid friendly fire. Friendly fire is part of the game (therefore, it should have been obvious from the beginning).