fix Stable component to correctly count pets (#9182)

This commit is contained in:
Trevor Ford 2017-10-15 13:20:40 -04:00 committed by Sabe Jones
parent ca81ff5af6
commit f2fed7ea39

View file

@ -831,7 +831,8 @@
let countAll = animals.length;
let countOwned = _filter(animals, (a) => {
return a.isOwned();
// when counting pets, include those that have been raised into mounts
return a.isOwned() || a.mountOwned();
});
return `${countOwned.length}/${countAll}`;