28 {
29 Object targetObject = target.GetObject();
30
31 if ( targetObject != NULL && targetObject.IsInherited(
PlantBase) && !item.IsDamageDestroyed() )
32 {
34
35 if (plant.IsSprayable())
36 {
37 if ( item.GetQuantity() > 0 )
38 {
39 return true;
40 }
41 }
42 }
43
44 return false;
45 }