Adds support for potioneffects in classes