static const mageryPerCircle = (1000.0 / 7.0);
static const float mageryPerCircle = (1000.0 / 7.0);
	int getRandomHarmfulSpell() {		static const mageryPerCircle = (1000.0 / 7.0);		unsigned char maxCircle = QMIN(8, QMAX(1, (unsigned char)((m_npc->skillValue(MAGERY) + 200) / mageryPerCircle)));		int selected = RandomNum(1, maxCircle * 2) - 1; // Select a random spell		// 5: Magic Arrow		// 12: Harm		// 18: Fireball		// 30: Lightning		// 37: Mind Blast		// 42: Energy Bolt		// 43: Explosion		// 51: FlameStrike (Default)		static int const spells[16] = { 5, 5, 12, 12, 18, 18, 30, 30, 37, 37, 42, 43, 51, };		return spells[selected];	}