Done #243
Because it is imposible to delete a param value (or set it to nil), I use traget_type to determine if the unit target another unit, ground or nothing.
Merge pull request #323 from N0U/master

Done #243