Interesting that you, like the author of the screenrant article, quote excerpts while ignoring the... ahem...
context. Clearly, the spirit of the law is
to protect innocents. The reason all these things are prohibited is because of the danger of people other than the military targets being victims. You'll notice that the same list includes "children's toys or other portable objects or products specially designed for the feeding, health, hygiene, clothing or education of children" ... so if someone attached a bomb to a remote-control Lightning McQueen, you could make the same argument. But since this is clearly in a battle context and there was no chance of civilians becoming involved, it doesn't work, and I imagine a real-life judge would come to the same conclusion as well.
If you look at the military manuals in the same document, you'll notice they make this distinction more explicit.
For example:
- Belgium’s Law of War Manual (1983), under the heading “Mines and traps (booby traps)”, states that they “
must only be used against military objectives”.
- Israel’s Manual on the Laws of War (1998) states: “Within the framework of the [1980 Convention on Certain Conventional Weapons], it was decided
to prohibit the exposure of the civilian population to booby traps and booby-trapped objects.”
- South Africa’s LOAC Manual (1996) does not prohibit booby-traps as such. It does, however, state that the main concern is whether
indiscriminate use endangers the civilian population. When employing booby-traps, it says, the military must therefore
consider what or who is the likely target.
- The Russian Federation’s Military Manual (1990) prohibits the use of weapons
that are by nature indiscriminate. ... The following shall be prohibited to use in the course of combat operations: ... booby-traps which are placed
outside a military objective and in any way attached to, or associated with ... sick, wounded persons or dead bodies;