Browse Source

Fix backpack availability check in Grail digging

Ivan Savenko 1 năm trước cách đây
mục cha
commit
e66a982c96
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      lib/mapObjects/CGHeroInstance.cpp

+ 1 - 1
lib/mapObjects/CGHeroInstance.cpp

@@ -1276,7 +1276,7 @@ EDiggingStatus CGHeroInstance::diggingStatus() const
 {
 	if(static_cast<int>(movement) < movementPointsLimit(true))
 		return EDiggingStatus::LACK_OF_MOVEMENT;
-	if(ArtifactID(ArtifactID::GRAIL).toArtifact()->canBePutAt(this))
+	if(!ArtifactID(ArtifactID::GRAIL).toArtifact()->canBePutAt(this))
 		return EDiggingStatus::BACKPACK_IS_FULL;
 	return cb->getTileDigStatus(visitablePos());
 }