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.