Windows - Beamdog - v1.3.2058
Mod required(Circumstances don't exist in vanilla)
A character affected by opcode 145, type:wizard, will have all wizard spells in their quick-cast slots removed, preventing them from being cast this way. A character affected by opcode 145, type:priest, will NOT have their priest spells in their quick-cast slots removed, allowing them to continue to cast whichever spells were already there.
Priest spells in quick-cast slots are removed when the character is effected by Opcode 145, type:priest. This behavior is already present in BGEE 1.3, have not tried BG2EE 1.3.