diff api/Objects/Unit.cs @ 162:624422e91a1c

Re #192: Improve "clean coding" practice * Make Equipment util class public * Remove use of obsolete method
author IBBoard <dev@ibboard.co.uk>
date Sun, 04 Oct 2009 15:52:15 +0000
parents 81abc04b3dbe
children 91f7b8da0b53
line wrap: on
line diff
--- a/api/Objects/Unit.cs	Sun Oct 04 12:00:16 2009 +0000
+++ b/api/Objects/Unit.cs	Sun Oct 04 15:52:15 2009 +0000
@@ -434,7 +434,7 @@
 			}
 			else
 			{
-				canEquip = GetBlockingEquipmentItems(item).Count == 0;
+				canEquip = UnitEquipmentUtil.GetBlockingEquipmentItems(this, item).Count == 0;
 			}
 
 			return canEquip;