Core/Spells: Fix logic in 20eeeaf59764604d629d91e2044972bf00f9c052