I see, thanks for bringing this up. The problem is that the method checktarget() accepts the owned_adoptables id, not the adoptables species id. For this reason it is working out in somewhat of a weird way. To fix this, find these lines in class_item.php:
PHP Code:
public function checktarget($aid){
// This method checks if the item is usable
$item_usable = FALSE;
switch($this->target){
case "all":
$item_usable = TRUE;
break;
case "user":
$item_usable = TRUE;
break;
default:
$target = explode(",",$this->target);
foreach($target as $temp){
if($temp == $aid) $item_usable = TRUE;
}
}
return $item_usable;
}
Replace by:
PHP Code:
public function checktarget($aid){
// This method checks if the item is usable
$id = converttypetoparentid(convertidtotype($aid));
$item_usable = FALSE;
switch($this->target){
case "all":
$item_usable = TRUE;
break;
case "user":
$item_usable = TRUE;
break;
default:
$target = explode(",",$this->target);
if(in_array($id, $target)) $item_usable = TRUE;
}
return $item_usable;
}