You should incorporate this into the if else 2 lines above o.o There already is a check for chain cast, to fill the stack, you can just extend that, by saying if !chancast && !instancecasting then inc, otherwise fill.