To explain, as a result of losing 1000 civilians in Hamas attack, Israel can inflict upwards of 1000 civilian casualties as long as Israel is proven not to be directly targeting civilians...
So if Hamas is in civilian areas, Israel has more or less free reign according to international law...